20 ms·
Hum, IIRC, using your definition of an AOT compiler, then V8 is an AOT compiler. V8 never interprets code. It immediately compiles it to machine code. It improv
by sjrd 7mo ago
Hum, IIRC, using your definition of an AOT compiler, then V8 is an AOT compiler. V8 never interprets code. It immediately compiles it to machine code. It improves it later, but it's never slow.
- Maxatar 7mo agoV8 is a JIT compiler that uses the Ignition [1] interpreter and only compiles sections of code down to machine instructions once they've been marked as hot via TurboFan [2]. V8 can also go back and forth from machine instructions back to bytecode if it identifies that certain optimization assumptions no longer hold. [1] https://v8.dev/docs/ignition https://v8.dev/docs/ignition [2] https://v8.dev/docs/turbofan https://v8.dev/docs/turbofan
- NSPG911 7mo agoThat literally is the definition of JIT, it does a quick parse, compiles hot parts and improves it later on