Changeset 39571 in webkit for trunk/JavaScriptCore/runtime/ScopeChain.cpp
- Timestamp:
- Jan 2, 2009, 8:36:40 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/ScopeChain.cpp
r38087 r39571 51 51 #endif 52 52 53 int 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 53 67 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.