Changeset 39440 in webkit for trunk/JavaScriptCore/jit/JITCall.cpp
- Timestamp:
- Dec 22, 2008, 1:21:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITCall.cpp
r39435 r39440 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:: repatch(callLinkInfo->hotPathBegin, JSImmediate::impossibleValue());52 DataLabelPtr::patch(callLinkInfo->hotPathBegin, JSImmediate::impossibleValue()); 53 53 } 54 54 … … 61 61 calleeCodeBlock->addCaller(callLinkInfo); 62 62 63 DataLabelPtr:: repatch(callLinkInfo->hotPathBegin, callee);64 Jump:: repatch(callLinkInfo->hotPathOther, ctiCode);65 } 66 67 // repatch the instruction that jumps out to the cold path, so that we only try to link once.68 void* repatchCheck = reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(callLinkInfo->hotPathBegin) + repatchOffsetOpCallCompareToJump);69 Jump:: repatch(repatchCheck, callLinkInfo->coldPathOther);63 DataLabelPtr::patch(callLinkInfo->hotPathBegin, callee); 64 Jump::patch(callLinkInfo->hotPathOther, ctiCode); 65 } 66 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); 70 70 } 71 71 … … 219 219 emitGetVirtualRegister(callee, X86::ecx); 220 220 DataLabelPtr addressOfLinkedFunctionCheck; 221 Jump jumpToSlow = jnePtrWith Repatch(X86::ecx, addressOfLinkedFunctionCheck, ImmPtr(JSImmediate::impossibleValue()));221 Jump jumpToSlow = jnePtrWithPatch(X86::ecx, addressOfLinkedFunctionCheck, ImmPtr(JSImmediate::impossibleValue())); 222 222 addSlowCase(jumpToSlow); 223 ASSERT(differenceBetween(addressOfLinkedFunctionCheck, jumpToSlow) == repatchOffsetOpCallCompareToJump);223 ASSERT(differenceBetween(addressOfLinkedFunctionCheck, jumpToSlow) == patchOffsetOpCallCompareToJump); 224 224 m_callStructureStubCompilationInfo[callLinkInfoIndex].hotPathBegin = addressOfLinkedFunctionCheck; 225 225
Note:
See TracChangeset
for help on using the changeset viewer.