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/runtime/ScopeChain.cpp

    r38087 r39571  
    5151#endif
    5252
     53int ScopeChain::localDepth() const
     54{
     55    int scopeDepth = 0;
     56    ScopeChainIterator iter = this->begin();
     57    ScopeChainIterator end = this->end();
     58    while (!(*iter)->isObject(&JSActivation::info)) {
     59        ++iter;
     60        if (iter == end)
     61            break;
     62        ++scopeDepth;
     63    }
     64    return scopeDepth;
     65}
     66
    5367} // namespace JSC
Note: See TracChangeset for help on using the changeset viewer.