IT lexicon › Programming › Maglev

Maglev

Programming På svenska → Updated: 2026-11-07
More info
Owner
Google
Released
2023
Type
Optimizing JIT compiler (mid-tier)

V8's mid-tier optimizing compiler, designed to be good enough quickly rather than best slowly.

For years there was a gap between the Sparkplug baseline compiler and TurboFan. Sparkplug compiles almost instantly but optimizes nothing; TurboFan optimizes hard but takes its time. Code that was only moderately hot landed at the wrong end. Maglev, switched on in Chrome in 2023, fills the hole with a simpler design: a plain SSA graph with basic blocks, a single specialization pass driven by type feedback, and a straightforward register allocator.

It compiles roughly an order of magnitude faster than TurboFan and produces far better code than Sparkplug. The difference shows most on web pages, where a lot of JavaScript runs a few hundred times and then never again. Maglev's choice of a conventional graph also became part of the case for leaving the sea of nodes in TurboFan too.

← Back to the lexicon