Re:The Baseline Interpreter: A Faster JavaScript Interpreter...
by XCSme on Saturday August 31, 2019 @07:16AM
(#20845655)
I was mostly replying to this: "JS developers don't have the option to send along some of this information themselves; type information, JS bytecode", that in JS you can send some type information with asm.js hints (or TypedArrays), but yes you don't send it directly to the C++ interpreter, but to the JS interpreter, which presumably will pass it further.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter...
by erikpukinskis on Friday August 30, 2019 @09:16PM
(#20844062)
The point is, if you care about performance use asm.js. If you don’t then just use whatever standard path browsers provide and any optimization they do is gravy.
In other words, it isn't practical to compile JS to WASM, and especially not to asm.js. The browser's JIT compilation of JS targets something completely different.