[webkit-dev] How to dump SquirrelFish opcode and machine code
zherczeg at inf.u-szeged.hu
Wed May 27 11:42:26 PDT 2009
> How to dump SquirrelFish opcode and machine code?
> Here is what I would like to do, for each JS file that WebCore passes to
> SquirrelFish, configure SquirrelFish to dump opcode and machine code.
> Thank you for any tips.
I am not sure you can do SF byte code dump out of the box since SF opcode
debug mode. In that case you just have to pass -d option to jsc.
Fortunately, all neccessary helper functions can be found here:
You only need to do some hand coding to make it available under WebCore,
and perhaps dump the output into a file instead of the console.
code goes through this function:
You can dump the raw x86 code here, and a disassembler can do the rest of
More information about the webkit-dev