Ignore:
Timestamp:
Jun 5, 2009, 7:39:36 PM (16 years ago)
Author:
[email protected]
Message:

2009-06-05 Gavin Barraclough <[email protected]>

Reviewed by Sam Weinig.

Switch storePtrWithPatch to take the initial immediate value as an argument.

  • assembler/MacroAssemblerX86.h: (JSC::MacroAssemblerX86::storePtrWithPatch):
  • assembler/MacroAssemblerX86_64.h: (JSC::MacroAssemblerX86_64::storePtrWithPatch):
  • jit/JITOpcodes.cpp: (JSC::JIT::emit_op_jsr):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITOpcodes.cpp

    r44457 r44477  
    517517    int retAddrDst = currentInstruction[1].u.operand;
    518518    int target = currentInstruction[2].u.operand;
    519     DataLabelPtr storeLocation = storePtrWithPatch(Address(callFrameRegister, sizeof(Register) * retAddrDst));
     519    DataLabelPtr storeLocation = storePtrWithPatch(ImmPtr(0), Address(callFrameRegister, sizeof(Register) * retAddrDst));
    520520    addJump(jump(), target + 2);
    521521    m_jsrSites.append(JSRInfo(storeLocation, label()));
Note: See TracChangeset for help on using the changeset viewer.