JSConf JP

Peeking into V8 Bytecode with Node.js: Three JavaScript Experiments

SessionTrack BJapanese

What happens to the JavaScript source code we write inside V8 when it is executed? This session briefly organizes V8’s pipeline—parsing, AST construction, bytecode generation, Ignition, Sparkplug, Maglev, and TurboFan/Turboshaft—then uses Node.js diagnostic options to inspect actual Ignition bytecode for three small functions: addition, conditional branching, and property access.

By changing each source sample, we explain how accumulators, comparisons and jumps, property-access instructions, and feedback locations appear in bytecode. We also compare JavaScript, bytecode, and optimized machine code for one function to show how Maglev and TurboFan specialize operations, guard assumptions, and deoptimize when those assumptions fail.