[webkit-dev] want to port JIT to MIPS, any coworker or any hint?
barraclough at apple.com
Sun Jan 25 01:34:12 PST 2009
On Jan 24, 2009, at 8:36 PM, x yz wrote:
> Just build webkit on XP using cgywin, not tested yet. I want to port
> to 32bit MIPS, it seems I need to touch JIT and rewrite assembler
Once you have the bytecode interpreter up and running on MIPS, I'd
recommend starting by just trying to port WREC (the regular expression
JIT). This is a good starting point because it utilizes a smaller
subset of the MacroAssembler interface, and has a much simpler
interface to C code (JIT code is called with C calling conventions,
and no callbacks are made into C from the JIT generated code).
> Any document there on javascripcore/assembler? I also want a smart
> way to make sure output is correct.
A very simple way to validate you are generating the correct code is
to simply force the JIT to insert a breakpoint (i.e. use
MacroAssembler::breakpoint()) at the head of the function you are
generating, then run jsc under a debugger, and when it hits the
breakpoint simply disassemble the code in memory at the point it has
stopped. Now you can visually inspect that it it has generated the
code you were expecting.
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev