Changeset 89885 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Jun 27, 2011, 6:32:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r89630 r89885 39 39 #include "JSStaticScopeObject.h" 40 40 #include "JSValue.h" 41 #include "RepatchBuffer.h" 41 42 #include "UStringConcatenate.h" 42 43 #include <stdio.h> … … 1677 1678 callFrame->setScopeChain(callFrame->scopeChain()->push(activation)); 1678 1679 } 1680 1681 #if ENABLE(JIT) 1682 void CodeBlock::unlinkCalls() 1683 { 1684 if (!(m_callLinkInfos.size() || m_methodCallLinkInfos.size())) 1685 return; 1686 RepatchBuffer repatchBuffer(this); 1687 for (size_t i = 0; i < m_callLinkInfos.size(); i++) { 1688 if (!m_callLinkInfos[i].isLinked()) 1689 continue; 1690 repatchBuffer.relink(m_callLinkInfos[i].callReturnLocation, m_callLinkInfos[i].isCall ? m_globalData->jitStubs->ctiVirtualCallLink() : m_globalData->jitStubs->ctiVirtualConstructLink()); 1691 m_callLinkInfos[i].unlink(); 1692 } 1693 } 1694 #endif 1695 1696 void CodeBlock::clearEvalCache() 1697 { 1698 if (!m_rareData) 1699 return; 1700 m_rareData->m_evalCodeCache.clear(); 1701 } 1679 1702 1680 1703 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.