Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Glossary

TermMeaning
acc (accumulator)the implicit result register of the bytecode; most instructions read or write it
Agentthe context of one run; JS operation semantics hang off it
Contextan execution context: the global object and built-in prototypes
context slot / Envthe heap environment holding variables that closures capture
CodeCachebytecode shared by several executors
deopta failed speculation: machine code goes back to the interpreter
EventLoop / EventLoopSetone JS event loop / the loop threads running many of them
feedback slotwhere bytecode records types and shapes it saw; the JIT speculates on them
FrameStatewhat each interpreter register holds at a guard; frames are rebuilt from it on a deopt
’gc brandthe lifetime of one Isolate::enter; values carrying it can’t leave that entry
GcCell / ValueCellj8’s mutable cells on paragc: a snapshot of a block of data / a single value
Globala persistent handle, surviving enter calls
IC (inline cache)per property-access site, results cached by shape
IgnitionV8’s interpreter; j8’s bytecode matches it byte for byte
Intrinsicsthe interface that installs built-ins into a Realm, implemented by j8builtins
Isolatean independent JS world: one GC heap
NaN-boxingone 64-bit word per value, non-numbers packed into NaN bit patterns
OSR (on-stack replacement)entering machine code in the middle of a loop
paragcthe GC library j8 uses
Platformthe thread pool, clocks, output and module loading the host lends the engine
preludeJS a runtime runs after installing its bindings, to build its public API
Realmthe spec’s realm: a set of global object and built-ins
ropea lazy string concatenation: two halves plus the total length
Shape (hidden class)the layout of an object’s properties, shared by objects built the same way
short StarStar0 … Star15: one-byte register stores without operands
Tierthe executor’s JIT hook
TDZ (temporal dead zone)the region before a let / const / class is initialized
trampolineone jump per function, to its machine code or the interpreter
__j8_nativea runtime’s hidden registry object