Google's JavaScript engine. It powers Chrome, Node.js, Deno, and Electron. It parses source code into an AST, compiles it to bytecode via Ignition, and optimizes hot code to machine code via TurboFan.
What is V8 in JavaScript?
More FAQs in Google's V8 JavaScript Engine Architecture Explained
Just-In-Time compilation: V8 compiles code at runtime. Ignition generates bytecode quickly for fast startup. TurboFan recompiles hot (frequently executed) code to optimized machine code for high performance.
Internal labels V8 assigns to objects based on their shape (property names and order). Objects with the same hidden class share optimized code. Changing an object's shape (adding properties in different orders) creates new hidden classes and causes deoptimization.
When an optimized assumption breaks (like an object's hidden class changing), V8 discards the optimized machine code and falls back to interpreted bytecode. This hurts performance. Stable object shapes prevent deoptimization.
Still have questions?
Browse all our FAQs or reach out to our support team
Want to upskill yourself?
Your learning library
Small steps. Big possibilities.
Find your next course. Build something great.