Changeset 44844 in webkit for trunk/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Jun 19, 2009, 12:10:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSFunction.cpp
r43661 r44844 49 49 : Base(&exec->globalData(), structure, name) 50 50 #if ENABLE(JIT) 51 , m_body( exec->globalData().nativeFunctionThunk())51 , m_body(FunctionBodyNode::createNativeThunk(&exec->globalData())) 52 52 #else 53 53 , m_body(0) … … 77 77 // are based on a check for the this pointer value for this JSFunction - which will no longer be valid once 78 78 // this memory is freed and may be reused (potentially for another, different JSFunction). 79 if ( !isHostFunction()) {80 if (m_body && m_body->isGenerated())81 m_body->generatedBytecode().unlinkCallers();79 if (m_body && m_body->isGenerated()) 80 m_body->generatedBytecode().unlinkCallers(); 81 if (!isHostFunction()) 82 82 scopeChain().~ScopeChain(); 83 }84 85 83 #endif 86 84 } … … 89 87 { 90 88 Base::mark(); 91 if (!isHostFunction()) {92 m_body->mark();89 m_body->mark(); 90 if (!isHostFunction()) 93 91 scopeChain().mark(); 94 }95 92 } 96 93
Note:
See TracChangeset
for help on using the changeset viewer.