Does anybody know how I can see the actual machine code that v8 generates from Javascript? I\'ve gotten as far as Script::Compile() in src/api.cc b
Try with NodeJS or Chrome:
-print-opt-code: Code generated by optimizing compiler.-print-bytecode: Byte code generated by interpreter.-trace-opt and -trace-depot : which functions are (de)optimized.Check this article by @Franziska Hinkelmann :
https://medium.com/dailyjs/understanding-v8s-bytecode-317d46c94775
Additionally you can also try
D8: It will help you compile V8 and view the assembly code generated from JavaScript.
For usage and details:
http://www.mattzeunert.com/2015/08/19/viewing-assembly-code-generated-by-v8.html