Changeset 39571 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
- Timestamp:
- Jan 2, 2009, 8:36:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r39524 r39571 213 213 , m_finallyDepth(0) 214 214 , m_dynamicScopeDepth(0) 215 , m_baseScopeDepth(0) 215 216 , m_codeType(GlobalCode) 216 217 , m_nextGlobalIndex(-1) … … 293 294 , m_finallyDepth(0) 294 295 , m_dynamicScopeDepth(0) 296 , m_baseScopeDepth(0) 295 297 , m_codeType(FunctionCode) 296 298 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) … … 364 366 , m_finallyDepth(0) 365 367 , m_dynamicScopeDepth(0) 368 , m_baseScopeDepth(scopeChain.localDepth()) 366 369 , m_codeType(EvalCode) 367 370 , m_globalData(&scopeChain.globalObject()->globalExec()->globalData()) … … 369 372 , m_emitNodeDepth(0) 370 373 { 371 if (m_shouldEmitDebugHooks )374 if (m_shouldEmitDebugHooks || m_baseScopeDepth) 372 375 m_codeBlock->setNeedsFullScopeChain(true); 373 376 … … 1589 1592 { 1590 1593 #if ENABLE(JIT) 1591 HandlerInfo info = { start->offsetFrom(0), end->offsetFrom(0), instructions().size(), m_dynamicScopeDepth , 0 };1594 HandlerInfo info = { start->offsetFrom(0), end->offsetFrom(0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth, 0 }; 1592 1595 #else 1593 HandlerInfo info = { start->offsetFrom(0), end->offsetFrom(0), instructions().size(), m_dynamicScopeDepth };1596 HandlerInfo info = { start->offsetFrom(0), end->offsetFrom(0), instructions().size(), m_dynamicScopeDepth + m_baseScopeDepth }; 1594 1597 #endif 1595 1598
Note:
See TracChangeset
for help on using the changeset viewer.