V8 Internals for JS Developers
summary
V8 exposes about twenty distinct elements kinds and the talk shows how arrays transition irreversibly from specific (SMI) to general (double, object) formats, and from packed to hole arrays which costs extra prototype lookups. Practical tests use the d8 debug binary and internal %-prefixed helpers — e.g. use d8 and %DebugPrint to inspect an array’s elements kind. Concrete advice: avoid creating holes, normalize -0/NaN/Infinity, prefer typed arrays or push-filled literals for best numeric performance.
AI-written summary · about
chapters (6)
related talks
28mV8 internals for JavaScript developers
30mV8 internals for JS developers
24mDemystifying V8 and JavaScript Performance
27mThe Life of a JavaScript Feature in V8 ft. TypedArrays
23mJoin the super secret V8 club & become a JavaScriptbender
33mJavaScript: The V8 Engine optimization tips (...)
17mV8 engine, JS Code Interpretation, and Execution
01h 00mV8 Under the Hood
