Actually V8 use JIT (Just-In-Time) compiler, it doesn't follow traditional way of using Interpreter,
For JIT compilation v8 uses a pipeline called Ignition which is also called as Ignition interpreter
Didn't they add an Interpreter back because its faster for code that will run only once?
I would say V8 actually does both interpretation and compilation and can switch between them whenever is needed.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Edison,
You mentioned that V8 translates Javascript code to more efficient machine code without using an interpreter.
But in the bottom, you introduced V8 Ignition(Intrepreter), Turbofan(Compiler) which does same.
So which one correct statement? V8 using intrepreter or not? Can you explain?
Thanks
Thanks for pointing out mistakes
Actually V8 use JIT (Just-In-Time) compiler, it doesn't follow traditional way of using Interpreter,
For JIT compilation v8 uses a pipeline called Ignition which is also called as Ignition interpreter
Thanks for the explanation.
Didn't they add an Interpreter back because its faster for code that will run only once?
I would say V8 actually does both interpretation and compilation and can switch between them whenever is needed.