3 ms·
Does V8 specify a virtual machine and instruction set which you could make a real processor for? I thought it went straight from Javascript to either x86 or ARM
by prodigal_erik 13y ago
Does V8 specify a virtual machine and instruction set which you could make a real processor for? I thought it went straight from Javascript to either x86 or ARM.
- calinet6 13y agoCorrect, V8 compiles Javascript directly to machine code in a JIT fashion; there is no intermediate instruction set or bytecode. https://developers.google.com/v8/design?hl=es-ES#mach_code https://developers.google.com/v8/design?hl=es-ES#mach_code So in that sense, yeah, V8 is not really a VM but just a JIT compiler/interpreter.