Sparkplug
V8's fast non-optimising compiler, which turns bytecode directly into simple machine code for functions that run often.
In more detail
Sparkplug does no clever analysis, so it compiles very quickly and removes the overhead of interpreting. Functions that stay hot are later compiled again by TurboFan.
Related terms
- V8 — Google's open-source JavaScript engine, used by Chrome and Node.js to parse, compile and run JavaScript.
- Ignition — V8's interpreter, which turns the abstract syntax tree into bytecode and runs it so code starts quickly.
- TurboFan — V8's optimising compiler, which turns hot functions into fast machine code based on the types it has seen.
Taught in
- V8 Engine & JIT Pipeline: Bytecode & Turbofan — Node.js Internals & Backend Services