Changeset 40846 in webkit for trunk/JavaScriptCore/jit/JITCall.cpp
- Timestamp:
- Feb 10, 2009, 8:57:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITCall.cpp
r40813 r40846 50 50 // (and, if a new JSFunction happened to be constructed at the same location, we could get a false positive 51 51 // match). Reset the check so it no longer matches. 52 DataLabelPtr::patch(callLinkInfo->hotPathBegin,JSValuePtr::encode(jsImpossibleValue()));52 callLinkInfo->hotPathBegin.repatch(JSValuePtr::encode(jsImpossibleValue())); 53 53 } 54 54 … … 61 61 calleeCodeBlock->addCaller(callLinkInfo); 62 62 63 DataLabelPtr::patch(callLinkInfo->hotPathBegin,callee);64 Jump::patch(callLinkInfo->hotPathOther,ctiCode.addressForCall());63 callLinkInfo->hotPathBegin.repatch(callee); 64 callLinkInfo->hotPathOther.relink(ctiCode.addressForCall()); 65 65 } 66 66 67 67 // patch the instruction that jumps out to the cold path, so that we only try to link once. 68 void* patchCheck = reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(callLinkInfo->hotPathBegin) + patchOffsetOpCallCompareToJump); 69 Jump::patch(patchCheck, callLinkInfo->coldPathOther); 68 callLinkInfo->hotPathBegin.jumpAtOffset(patchOffsetOpCallCompareToJump).relink(callLinkInfo->coldPathOther); 70 69 } 71 70
Note:
See TracChangeset
for help on using the changeset viewer.