JavaScript VMs 101
summary
Covers how modern JavaScript engines actually speed code: history from AST interpreters to bytecode and JITs, concrete techniques like structures (hidden classes) and inline caching, and the runtime behavior of adaptive recompilation across a multi-tier pipeline. Gives measured effects (baseline ~2.4×, further optimizers ~2× more, higher tiers another order), focuses on JavaScriptCore but ties to other VMs, and explains when optimizations win or rollback.
AI-written summary · about
chapters (8)
- 0:00Start
- 4:08Lexing (lexical analysis)
- 4:32Parsing (syntactic analysis)
- 5:01Interpreter
- 9:40Property Access
- 14:07Structures
- 16:15Inline Caching
- 18:20Adaptive Recompilation
related talks
29mJavaScript Engines: How Do They Even?
21mDemystifying Javascript Engines
25mJavaScript engines how do they even?
17mDemystifying (JavaScript) engines
18mDemystifying JS Engines
41mVirtual Machines 101
31mJavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"
28mThe Past, Present and Future of JavaScript Engines
