Ignore:
Timestamp:
May 15, 2010, 1:58:57 AM (15 years ago)
Author:
[email protected]
Message:

2010-05-15 Chao-ying Fu <[email protected]>

Reviewed by Oliver Hunt.

Update MIPS JIT for unsigned right shift, Math.sqrt, load16
https://bugs.webkit.org/show_bug.cgi?id=38412

Fixed MIPS build failure.

  • assembler/MIPSAssembler.h: (JSC::MIPSAssembler::srl): (JSC::MIPSAssembler::srlv): (JSC::MIPSAssembler::sqrtd):
  • assembler/MacroAssemblerMIPS.h: (JSC::MacroAssemblerMIPS::urshift32): (JSC::MacroAssemblerMIPS::sqrtDouble): (JSC::MacroAssemblerMIPS::load16): (JSC::MacroAssemblerMIPS::supportsFloatingPointSqrt):
  • jit/JSInterfaceJIT.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/assembler/MIPSAssembler.h

    r56759 r59527  
    393393    }
    394394
     395    void srl(RegisterID rd, RegisterID rt, int shamt)
     396    {
     397        emitInst(0x00000002 | (rd << OP_SH_RD) | (rt << OP_SH_RT)
     398                 | ((shamt & 0x1f) << OP_SH_SHAMT));
     399    }
     400
     401    void srlv(RegisterID rd, RegisterID rt, RegisterID rs)
     402    {
     403        emitInst(0x00000006 | (rd << OP_SH_RD) | (rt << OP_SH_RT)
     404                 | (rs << OP_SH_RS));
     405    }
     406
    395407    void lbu(RegisterID rt, RegisterID rs, int offset)
    396408    {
     
    548560        emitInst(0x44000000 | (fs << OP_SH_FS) | (rt << OP_SH_RT));
    549561        copDelayNop();
     562    }
     563
     564    void sqrtd(FPRegisterID fd, FPRegisterID fs)
     565    {
     566        emitInst(0x46200004 | (fd << OP_SH_FD) | (fs << OP_SH_FS));
    550567    }
    551568
Note: See TracChangeset for help on using the changeset viewer.