Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Correct, 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

So in that sense, yeah, V8 is not really a VM but just a JIT compiler/interpreter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: