Ignore:
Timestamp:
Jan 2, 2009, 8:36:40 PM (16 years ago)
Author:
[email protected]
Message:

Build fix. Include FrameState.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r39524 r39571  
    213213    , m_finallyDepth(0)
    214214    , m_dynamicScopeDepth(0)
     215    , m_baseScopeDepth(0)
    215216    , m_codeType(GlobalCode)
    216217    , m_nextGlobalIndex(-1)
     
    293294    , m_finallyDepth(0)
    294295    , m_dynamicScopeDepth(0)
     296    , m_baseScopeDepth(0)
    295297    , m_codeType(FunctionCode)
    296298    , m_globalData(&scopeChain.globalObject()->globalExec()->globalData())
     
    364366    , m_finallyDepth(0)
    365367    , m_dynamicScopeDepth(0)
     368    , m_baseScopeDepth(scopeChain.localDepth())
    366369    , m_codeType(EvalCode)
    367370    , m_globalData(&scopeChain.globalObject()->globalExec()->globalData())
     
    369372    , m_emitNodeDepth(0)
    370373{
    371     if (m_shouldEmitDebugHooks)
     374    if (m_shouldEmitDebugHooks || m_baseScopeDepth)
    372375        m_codeBlock->setNeedsFullScopeChain(true);
    373376
     
    15891592{
    15901593#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 };
    15921595#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 };
    15941597#endif
    15951598
Note: See TracChangeset for help on using the changeset viewer.