Question:
I've heard people use the terms dynamic compilation and interpretation interchangeably. This isn't a question about semantics.
Obviously by the time the code hits the processor it is in some binary form.
How can I look at intermediate represenation?
For example, it is pretty easy to look at your C code in assembly by using compiler options.
Is there a similar way to do this with JavaScript? I'm not sure what the intermediary representation would be called but here are some general references.
Research
Clarification:
This question has nothing to do with minification.
2 Answers 2
If you build V8 yourself by compiling the d8 shell, you can run d8 --print_code or d8 --print_opt_code. You probably want to output this data into a file.
Comments
See if these slides from Vyacheslav Egorov's mö.js JSConf talk get you any closer to what you need.
d8 --print_codeord8 --print_opt_code