Ignore:
Timestamp:
Apr 3, 2017, 12:58:53 AM (8 years ago)
Author:
[email protected]
Message:

[jsc] Add patchableJumpSize() for MIPS
https://bugs.webkit.org/show_bug.cgi?id=169716

Patch by Zan Dobersek <[email protected]> on 2017-04-03
Reviewed by Yusuke Suzuki.

  • assembler/MIPSAssembler.h:

(JSC::MIPSAssembler::patchableJumpSize): Added.

  • assembler/MacroAssemblerMIPS.h:

(JSC::MacroAssemblerMIPS::patchableJumpSize): Added.

Location:
trunk/Source/JavaScriptCore/assembler
Files:
2 edited

Legend:

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

    r214745 r214750  
    918918    }
    919919
     920    static constexpr ptrdiff_t patchableJumpSize()
     921    {
     922        return sizeof(MIPSWord) * 8;
     923    }
     924
    920925    static void revertJumpToMove(void* instructionStart, RegisterID rt, int imm)
    921926    {
  • trunk/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h

    r214300 r214750  
    30083008    }
    30093009
     3010    static ptrdiff_t patchableJumpSize()
     3011    {
     3012        return MIPSAssembler::patchableJumpSize();
     3013    }
     3014
    30103015    static bool canJumpReplacePatchableBranchPtrWithPatch() { return false; }
    30113016    static bool canJumpReplacePatchableBranch32WithPatch() { return false; }
Note: See TracChangeset for help on using the changeset viewer.