Changeset 47597 in webkit for trunk/JavaScriptCore/runtime/Executable.cpp
- Timestamp:
- Aug 20, 2009, 2:49:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.cpp
r47519 r47597 86 86 OwnPtr<BytecodeGenerator> generator(new BytecodeGenerator(body(), globalObject->debugger(), scopeChain, &m_codeBlock->symbolTable(), m_codeBlock)); 87 87 generator->generate(); 88 m_numParameters = m_codeBlock->m_numParameters; 89 ASSERT(m_numParameters); 88 90 89 91 body()->destroyData(); … … 126 128 127 129 #endif 128 129 bool FunctionExecutable::isHostFunction() const130 {131 return m_codeBlock && m_codeBlock->codeType() == NativeCode;132 }133 130 134 131 void FunctionExecutable::markAggregate(MarkStack& markStack) … … 198 195 delete m_codeBlock; 199 196 m_codeBlock = 0; 197 m_numParameters = NUM_PARAMETERS_NOT_COMPILED; 200 198 #if ENABLE(JIT) 201 199 m_jitCode = JITCode(); … … 205 203 #if ENABLE(JIT) 206 204 FunctionExecutable::FunctionExecutable(ExecState* exec) 207 : m_codeBlock( new NativeCodeBlock(this))205 : m_codeBlock(0) 208 206 , m_name(Identifier(exec, "<native thunk>")) 209 207 { 210 208 m_jitCode = JITCode(JITCode::HostFunction(exec->globalData().jitStubs.ctiNativeCallThunk())); 209 m_numParameters = NUM_PARAMETERS_IS_HOST; 211 210 } 212 211 #endif
Note:
See TracChangeset
for help on using the changeset viewer.