Re: how to disassemble JS for an entire program?
[email protected] Sat, 14 Apr 2018 01:43:26 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, October 28, 2009 at 3:38:43 AM UTC+1, Yan Huang wrote: > In the documentation of spidermonkey's JS shell, it says the following > about dissrc command: > > dissrc([function]) > Disassembles the JavaScript bytecode for the entire program, or for > the specified function, showing the source lines. This function only > works with programs loaded from files, either using the -f flag on > launching the shell, or by using the load() function. > > But I am not very clear how can I use dissrc to disassemble the entire > program. The example given only demos how to disassemble a function > object. How could I achieve similar things on entire programs? Or is > this a misleading explanation in the document? > > Thanks, > Yan Huang Hello, I am interested in the exact same problem: Disassembling a whole program using dissrc rather than just a single function. Does anybody have some pointers for this? Thanks! Leon