Skip to content

Comment on Compilation of JavaScript to WASM, Part 2: Ahead-of-Time vs. JITparent

Comments

Maybe more importantly for performance, are those helpers inlinable into wasm?

At least in V8, wasm is handled by the same internals as javascript is. Its processed by the same optimization passes and turned into machine code by the same backend which generates the machine code for js.

While I'm not sure how much cross-language optimization is being done, it sounds like these all reduce to the same concepts in the end and I don't think the performance impact will be as large as you think.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.