JavaScript in JavaScript: Inception
summary
Claim: modern JITs make hand‑written C++ unnecessary for many runtime helpers so implementable pieces run faster as JavaScript. Uses V8’s bootstrap pipeline: edit JS bootstrap files, use the V8 snapshot tool, apply macro expansion to generate one copy per numeric typed array and add TypedArray.prototype.forEach. Builds include the JS as precompiled code that the engine JITs to machine code. Live patch compiles after a few fixes and the new forEach runs correctly across the typed array variants.
AI-written summary · about
chapters (6)
- 0:00Start
- 7:13How Much Javascript Is Using Engines
- 11:46Internal Compilation Error
- 16:05Macro Expansion
- 23:48Helper Functions
- 25:52Specification of Javascript
related talks
29mJavaScript Engines: How Do They Even?
52mJavaScript at the Speed of Light
31mJavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"
25mJavaScript engines how do they even?
27mThe Life of a JavaScript Feature in V8 ft. TypedArrays
33mJavaScript: The V8 Engine optimization tips (...)
27mJavascript at 20
26mJavaScript JITs
