I would like to examine the structure of pieces of JavaScript, i.e. once an object has been interpreted, what is the structure of the memory space the interpreted parts occupy, e.g. it has an ‘array’ of members, probably a header record, etc. Pretty much like I can present a simple C function as assembly code, or vice versa.
I have never come across any such information? Is this highly proprietary for the various interpretors, is it some secret understood by nobody, is it a big tree of string values and string metadata? Where can I see this kind of thing?
It is highly proprietary for various interpreters.
Here is some info on how V8 works (the chrome engine):
http://code.google.com/p/v8/
You may also like to take a look at the source code to SquirrelFish (WebKit/Safari)…
info:http://trac.webkit.org/wiki/SquirrelFish
… and TraceMonkey (FF3.1+) as they are both available.
info:https://wiki.mozilla.org/JavaScript:TraceMonkey