V8
V8 is Google’s open-source engine that compiles and runs JavaScript and WebAssembly code in Chrome, Node.js, Deno, and other programs that embed it.
A JavaScript engine implements the ECMAScript specification, which covers the syntax, the operators, and built-in objects such as Array and Promise. V8 is written in C++ and designed to be embedded in other applications. It went open source on September 2, 2008, the day Chrome launched. Other major engines are SpiderMonkey in Firefox and JavaScriptCore in Safari and Bun.
The program that embeds V8, called the host, builds the platform around the language with its own APIs. Chrome supplies the DOM and fetch(), while Node.js and Deno add file and network access. The host also drives the event loop that hands queued jobs to V8.
V8 compiles code while the program runs, an approach called just-in-time (JIT) compilation. Its Ignition interpreter starts executing bytecode right away. As V8 observes which functions run often and with which types, it recompiles them with faster tiers, from the Sparkplug baseline compiler through Maglev to the TurboFan optimizing compiler:
These optimized versions rest on assumptions about the types they’ve seen. When an assumption stops holding, V8 deoptimizes the code and falls back to a slower tier. V8 also manages memory, and its garbage collector frees objects the program can no longer reach.
V8’s release process is tied to Chrome’s, so V8 12.1 shipped in Chrome 121. Each Node.js release bundles a specific V8 version, which decides the ECMAScript features that release supports. Node.js 26 bundles V8 14.6, and the Node.js-only process.versions.v8 property reports the exact version in use.
Related Resources
Course
JavaScript Under the Hood for Pythonistas
Investigate why a game server's match-log processor slows down, and learn to profile JavaScript fairly, explain what V8 learns, trace what keeps objects alive, and read the specification.
For additional information on related topics, take a look at the following resources:
Have a question about this? Mentor AI can show you examples, compare related terms, and point you to tutorials.
By Leodanis Pozo Ramos • Updated Nov. 20, 2026