V8 (1JavaScript Engine) - Wikipedia
V8 (1JavaScript Engine) - Wikipedia
engine)
Repository chromium
.googlesource.com
/v8/v8 (https://chro
mium.googlesource.
com/v8/v8)
Written in C++[2]
Platform IA-32, x86-64, ARM,
AArch64, MIPS,
MIPS64[3] PowerPC,
IBM ESA/390
License BSD[4]
History
The V8 assembler is based on the
Strongtalk assembler.[7] On 7 December
2010, a new compiling infrastructure
named Crankshaft was released, with
speed improvements.[8] In version 41 of
Chrome in 2015, project TurboFan was
added to provide more performance
improvements with previously
challenging workloads such as asm.js.[9]
Much of V8's development is strongly
inspired by the Java HotSpot Virtual
Machine developed by Sun
Microsystems, with the newer execution
pipelines being very similar to those of
HotSpot's.
Design
V8 first generates an abstract syntax tree
with its own parser.[12] Then, Ignition
generates bytecode from this syntax tree
using the internal V8 bytecode format.[13]
TurboFan compiles this bytecode into
machine code. In other words, V8
compiles ECMAScript directly to native
machine code using just-in-time
compilation before executing it.[14] The
compiled code is additionally optimized
(and re-optimized) dynamically at
runtime, based on heuristics of the
code's execution profile. Optimization
techniques used include inlining, elision
of expensive runtime properties, and
inline caching. The garbage collector is a
generational incremental collector.[15]
Usage
V8 can compile to x86, ARM or MIPS
instruction set architectures in both their
32-bit and 64-bit editions; it has
additionally been ported to PowerPC[16]
and IBM ESA/390[17][18] for use in
servers.[3][19]
V8 can be used in a browser or
integrated into independent projects. V8
is used in the following software:
See also
Free and
open-
source
software
portal
Internet
portal
References
1. "Chrome Platform Status" (https://chrome
status.com/roadmap) . Retrieved 29 June
2023.
2. "V8 JavaScript Engine" (https://v8.dev/) .
Google LLC.
External links
Wikimedia Commons has media
related to V8 (JavaScript engine).
Official website (https://v8.dev/)
Retrieved from
"https://en.wikipedia.org/w/index.php?
title=V8_(JavaScript_engine)&oldid=1168903050"