Tag
v8
Articles tagged “v8”
- Articles
- 4
- Latest
- №04
The V8 object modelFour Maps Is Polymorphic. Five Is Not.
Monomorphic, polymorphic and megamorphic are counted states with a threshold of four. Here is the transition log, the V8 line that decides it, and the cost.
- №03
The V8 object modelObject Shapes Are a Tree, and the Tree Is Shared
A hidden class is a node in a transition tree V8 keeps for the whole isolate — which is why an unrelated function can decide how your object is stored.
- №02
Async machineryWhat await Compiles To, and What It Costs
One async function compiled three ways — TypeScript's ES5 emit, V8's bytecode and the spec's Await steps — and the microtask turns each one predicts.
- №01
The V8 object modelHow V8 Decides to Optimize Your Function
Two functions that look identical can run at very different speeds. The difference is usually shapes, inline caches, and a deoptimization you never saw.