TurboFan

V8's optimising compiler, which turns hot functions into fast machine code based on the types it has seen.

In more detail

TurboFan assumes values will keep the types recorded so far and adds cheap checks for that. If a check fails, the optimised code is thrown away and the function goes back to bytecode, which is called deoptimization.

Related terms

Taught in

References