Ignore:
Timestamp:
May 10, 2009, 11:06:30 PM (16 years ago)
Author:
[email protected]
Message:

2009-05-10 Maciej Stachowiak <[email protected]>

Reviewed by Geoff Garen.


Accound for the 64-bit instruction prefix when rewriting mov to lea on 64-bit.


  • jit/JIT.h:
  • jit/JITPropertyAccess.cpp: (JSC::JIT::patchGetByIdSelf): (JSC::JIT::patchPutByIdReplace):
File:
1 edited

Legend:

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

    r43432 r43481  
    331331    // and makes the subsequent load's offset automatically correct
    332332    if (structure->isUsingInlineStorage())
    333         stubInfo->hotPathBegin.instructionAtOffset(patchOffsetGetByIdExternalLoad).patchLoadToLEA();
     333        stubInfo->hotPathBegin.instructionAtOffset(patchOffsetGetByIdExternalLoad + patchLengthGetByIdExternalLoadPrefix).patchLoadToLEA();
    334334
    335335    // Patch the offset into the propoerty map to load from, then patch the Structure to look for.
     
    349349    // and makes the subsequent load's offset automatically correct
    350350    if (structure->isUsingInlineStorage())
    351         stubInfo->hotPathBegin.instructionAtOffset(patchOffsetGetByIdExternalLoad).patchLoadToLEA();
     351        stubInfo->hotPathBegin.instructionAtOffset(patchOffsetPutByIdExternalLoad + patchLengthPutByIdExternalLoadPrefix).patchLoadToLEA();
    352352
    353353    // Patch the offset into the propoerty map to load from, then patch the Structure to look for.
Note: See TracChangeset for help on using the changeset viewer.