Changeset 37861 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 24, 2008, 2:07:39 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r37859 r37861 1 2008-10-24 Cameron Zwarich <[email protected]> 2 3 Reviewed by Geoff Garen. 4 5 Remove ScopeChainNode::bottom() and inline it into its only caller, 6 ScopeChainnode::globalObject(). 7 8 * kjs/JSGlobalObject.h: 9 (JSC::ScopeChainNode::globalObject): 10 * kjs/ScopeChain.h: 11 (JSC::ScopeChain::bottom): 12 1 13 2008-10-24 Cameron Zwarich <[email protected]> 2 14 -
trunk/JavaScriptCore/kjs/JSGlobalObject.h
r37845 r37861 330 330 inline JSGlobalObject* ScopeChainNode::globalObject() const 331 331 { 332 return asGlobalObject(bottom()); 332 const ScopeChainNode* n = this; 333 while (n->next) 334 n = n->next; 335 return asGlobalObject(n->object); 333 336 } 334 337 -
trunk/JavaScriptCore/kjs/ScopeChain.h
r37386 r37861 64 64 } 65 65 66 JSObject* bottom() const;67 68 66 ScopeChainNode* push(JSObject*); 69 67 ScopeChainNode* pop(); … … 97 95 98 96 return result; 99 }100 101 inline JSObject* ScopeChainNode::bottom() const102 {103 const ScopeChainNode* n = this;104 while (n->next)105 n = n->next;106 return n->object;107 97 } 108 98 … … 189 179 190 180 JSObject* top() const { return m_node->object; } 191 JSObject* bottom() const { return m_node->bottom(); }192 181 193 182 ScopeChainIterator begin() const { return m_node->begin(); }
Note:
See TracChangeset
for help on using the changeset viewer.