I am looking for quite some time a documentation for all the spidermonkey's bytecodes, or at least something that tells me in general what a bytecode's purpose is.
Does anyone can recommend such resource?
Thanks!
I know it's not a great story, but the best documentation we have (other than jsopcode.tbl
, as Alex K. mentions) is the interpreter implementation (jsinterp.cpp
). We've noted on several occasions that it would be helpful to newcomers to have a more formalized document, noting the stack state transitions and describing side effects. I've started one here:
https://developer.mozilla.org/en/SpiderMonkey/Bytecodes
Feel free to drop in on #jsapi on irc.mozilla.org to ask about any that you'd like to see documented specifically!