Changeset 104646 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Jan 10, 2012, 4:18:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r104630 r104646 2057 2057 2058 2058 #if ENABLE(JIT) 2059 void CallLinkInfo::unlink(JSGlobalData& globalData, RepatchBuffer& repatchBuffer)2060 {2061 ASSERT(isLinked());2062 2063 if (isDFG) {2064 #if ENABLE(DFG_JIT)2065 repatchBuffer.relink(CodeLocationCall(callReturnLocation), callType == Construct ? operationLinkConstruct : operationLinkCall);2066 #else2067 ASSERT_NOT_REACHED();2068 #endif2069 } else2070 repatchBuffer.relink(CodeLocationNearCall(callReturnLocation), callType == Construct ? globalData.jitStubs->ctiVirtualConstructLink() : globalData.jitStubs->ctiVirtualCallLink());2071 hasSeenShouldRepatch = false;2072 callee.clear();2073 2074 // It will be on a list if the callee has a code block.2075 if (isOnList())2076 remove();2077 }2078 2079 void MethodCallLinkInfo::reset(RepatchBuffer& repatchBuffer, JITCode::JITType jitType)2080 {2081 cachedStructure.clearToMaxUnsigned();2082 cachedPrototype.clear();2083 cachedPrototypeStructure.clearToMaxUnsigned();2084 cachedFunction.clear();2085 2086 ASSERT_UNUSED(jitType, jitType == JITCode::BaselineJIT);2087 2088 repatchBuffer.relink(callReturnLocation, cti_op_get_by_id_method_check);2089 }2090 2091 2059 void CodeBlock::unlinkCalls() 2092 2060 {
Note:
See TracChangeset
for help on using the changeset viewer.