Re:Emscripten and asm.js: C++'s role in the modern web
by lohankin on Monday September 08, 2014 @10:56PM
(#8288516)
There was a recent article on code optimization technique in Safari involving on-the-fly javascript -> LLVM compilation. So the entire chain now will look as C++ -> LLVM -> javascript (asm.js) -> LLVM
Things are getting curiouser by the day...
[ Parent
| on HN ]
Re:Emscripten and asm.js: C++'s role in the modern web
by masklinn on Tuesday September 09, 2014 @02:18AM
(#8288972)
https://www.webkit.org/blog/3362/introducing-the-webkit-ftl-... for those who missed it.
The LLVM phase is really an alternative to the existing DFG JIT, and more precisely to the final phase thereof: the front of the DFG JIT is still used up to CPS optimisations, then it branches right before codegen: DFG generates its code directly while FTL converts DFG to SSA, applies SSA optimisations, converts to LLVM IR and passes the IR to LLVM for codegen.
Re:Emscripten and asm.js: C++'s role in the modern web
by chisophugis on Tuesday September 09, 2014 @03:10AM
(#8289077)
Curiously, pNaCl also takes that same route.