inlining

An optimisation that copies a small function's body, or a property lookup, straight into the code that uses it, avoiding the cost of a call or a search.

In more detail

V8 remembers, at each place in the code that reads a property, which object shapes it has seen: this is an inline cache. When only one shape has been seen, TurboFan can inline the property's exact position.

Related terms

Taught in

References