Bck2Brwsr 0.9
From APIDesign
(Difference between revisions)
m |
|||
Line 14: | Line 14: | ||
</source> | </source> | ||
- | which is shorter and more human readable. However I doubt the [[V8]] virtual machine sees any benefits - I think the final native code remains the same. But at least the debugging is now easier - there is less ''Step Over'' invocations | + | which is shorter and more human readable. However I doubt the [[V8]] virtual machine sees any benefits - I think the final native code remains the same. But at least the [[debugger|debugging]] of the generated [[JavaScript]] code is now easier - there is less ''Step Over'' invocations and it mimics more closely the original [[Java]] source. |
Revision as of 07:06, 3 June 2014
Eliminated useless stack assignments. Instead of doing
var stI0 = lcI0; var stI1 = lcI1; var stI0 = stI0 + stI1; return stI0;
the now generated code is
return lcI0 + lcI1;
which is shorter and more human readable. However I doubt the V8 virtual machine sees any benefits - I think the final native code remains the same. But at least the debugging of the generated JavaScript code is now easier - there is less Step Over invocations and it mimics more closely the original Java source.
Optimized the ahead-of-time compilation, so now the
http://xelfi.cz/minesweeper/bck2brwsr/
demo starts up instantly. Moreover it downloads necessary libraries in parallel and on background.