Changeset 44693 in webkit for trunk/JavaScriptCore/jit/JIT.cpp
- Timestamp:
- Jun 15, 2009, 1:17:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JIT.cpp
r44523 r44693 490 490 info.hotPathBegin = patchBuffer.locationOf(m_callStructureStubCompilationInfo[i].hotPathBegin); 491 491 info.hotPathOther = patchBuffer.locationOfNearCall(m_callStructureStubCompilationInfo[i].hotPathOther); 492 info.coldPathOther = patchBuffer.locationOf(m_callStructureStubCompilationInfo[i].coldPathOther);493 492 } 494 493 #endif … … 907 906 } 908 907 909 void JIT::linkCall(JSFunction* callee, CodeBlock* calleeCodeBlock, JITCode& code, CallLinkInfo* callLinkInfo, int callerArgCount )908 void JIT::linkCall(JSFunction* callee, CodeBlock* calleeCodeBlock, JITCode& code, CallLinkInfo* callLinkInfo, int callerArgCount, JSGlobalData* globalData) 910 909 { 911 910 // Currently we only link calls with the exact number of arguments. … … 921 920 } 922 921 923 // patch the instruction that jumps out to the cold path, so that we only try to link once.924 callLinkInfo-> hotPathBegin.jumpAtOffset(patchOffsetOpCallCompareToJump).relink(callLinkInfo->coldPathOther);922 // patch the call so we do not continue to try to link. 923 callLinkInfo->callReturnLocation.relink(globalData->jitStubs.ctiVirtualCall()); 925 924 } 926 925
Note:
See TracChangeset
for help on using the changeset viewer.