How does each browser provide an intermediate view of JavaScript?

Question:

I heard that people use the terms dynamic compilation and interpretation interchangeably. This is not a question of semantics.

Obviously, by the time the code hits the processor, it is in some binary form.

How can I see the intermediate view?

For example, it’s quite simple to look at your C code in the assembly using compiler options.

Is there a similar way to do this using JavaScript? I'm not sure if an intermediate view will be offered, but here are some general links.

Study

Clarification:

This question has nothing to do with minimization.

+7
source share
2 answers

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 to a file.

+1
source

See if these slides from Vyacheslav Egorov mΓΆ.js JSConf talk , get closer to what you need.

0
source

All Articles