Reputation:
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.
Upvotes: 7
Views: 306
Reputation: 154818
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.
Upvotes: 1
Reputation: 11358
See if these slides from Vyacheslav Egorov's mö.js JSConf talk get you any closer to what you need.
Upvotes: 1