Ignore:
Timestamp:
Nov 26, 2012, 11:37:18 AM (13 years ago)
Author:
[email protected]
Message:

[sh4] JavaScriptCore JIT build is broken since r135330
Add missing implementation for sh4 arch.
https://bugs.webkit.org/show_bug.cgi?id=103145

Patch by Julien BRIANCEAU <[email protected]> on 2012-11-26
Reviewed by Oliver Hunt.

  • assembler/MacroAssemblerSH4.h:

(JSC::MacroAssemblerSH4::canJumpReplacePatchableBranchPtrWithPatch):
(MacroAssemblerSH4):
(JSC::MacroAssemblerSH4::startOfBranchPtrWithPatchOnRegister):
(JSC::MacroAssemblerSH4::revertJumpReplacementToBranchPtrWithPatch):
(JSC::MacroAssemblerSH4::startOfPatchableBranchPtrWithPatchOnAddress):
(JSC::MacroAssemblerSH4::revertJumpReplacementToPatchableBranchPtrWithPatch):

  • assembler/SH4Assembler.h:

(JSC::SH4Assembler::revertJump):
(SH4Assembler):
(JSC::SH4Assembler::printInstr):

File:
1 edited

Legend:

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

    r135597 r135745  
    22172217    }
    22182218
     2219    static bool canJumpReplacePatchableBranchPtrWithPatch() { return false; }
     2220
     2221    static CodeLocationLabel startOfBranchPtrWithPatchOnRegister(CodeLocationDataLabelPtr label)
     2222    {
     2223        return label.labelAtOffset(0);
     2224    }
     2225
     2226    static void revertJumpReplacementToBranchPtrWithPatch(CodeLocationLabel instructionStart, RegisterID, void* initialValue)
     2227    {
     2228        SH4Assembler::revertJump(instructionStart.dataLocation(), reinterpret_cast<uintptr_t>(initialValue) & 0xffff);
     2229    }
     2230
     2231    static CodeLocationLabel startOfPatchableBranchPtrWithPatchOnAddress(CodeLocationDataLabelPtr)
     2232    {
     2233        UNREACHABLE_FOR_PLATFORM();
     2234        return CodeLocationLabel();
     2235    }
     2236
     2237    static void revertJumpReplacementToPatchableBranchPtrWithPatch(CodeLocationLabel instructionStart, Address, void* initialValue)
     2238    {
     2239        UNREACHABLE_FOR_PLATFORM();
     2240    }
     2241
    22192242protected:
    22202243    SH4Assembler::Condition SH4Condition(RelationalCondition cond)
Note: See TracChangeset for help on using the changeset viewer.