How does v8 load and execute the native machine code it generates?
1 Answer 1
Basically V8 creates a byte array containing the native instructions. It then copies the data into an executable memory region from which point on you can directly jump/call to it.
See FinalizeCode within the compiler which sets up a new Code object.
As for calling, you'll find the detailed frame description in frame-constants.h where you want
answered Apr 4, 2018 at 12:35
camillobruni
2,32816 silver badges27 bronze badges
Sign up to request clarification or add additional context in comments.