The pmtimer clocks updates quickly, much more often than JavaScript's
time functions. Windows XP doesn't handle this properly, so a hack is
required to update the timer even if JavaScript's time hasn't changed
This change was necessary for several reasons:
- Code is much clearer and more modular
- The CPU object is now serializeable and therefore can be safed and
restored
- A dynamic translator from instructions to (optimized) JavaScript is
planned. It would use `new Function` to create functions at runtime.
Functions created this way don't have access to any scope (except for
the global scope) and therefore were not have been able to modify
registers, etc. This is now possible through the cpu object
- Possibly, but not necessarily a speedgain can be achieved.
See http://mrale.ph/blog/2012/09/23/grokking-v8-closures-for-fun.html
Additionally, some code was moved around.