'. '

Bck2Brwsr 0.9

From APIDesign

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
Eliminated useless stack assignments. Instead of doing
+
[[Bck2Brwsr 0.9|Version 0.9]] eliminates useless stack assignments. Instead of doing
<source lang="javascript">
<source lang="javascript">

Revision as of 06:34, 10 June 2014

Version 0.9 eliminates 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. I had to do it, because it was so embarrassing to see TeaVM to boot the same application so quickly: The initial delay is gone, and moreover it downloads necessary libraries in parallel and on background. Now we are ready for next step: share the libraries between different applications.

Personal tools
buy