Changeset 77151 in webkit for trunk/Source/JavaScriptCore/runtime/ScopeChain.h
- Timestamp:
- Jan 31, 2011, 12:07:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/ScopeChain.h
r77113 r77151 22 22 #define ScopeChain_h 23 23 24 #include "WriteBarrier.h" 24 25 #include <wtf/FastAllocBase.h> 25 26 … … 53 54 { 54 55 next = 0; 55 object = 0;56 56 globalData = 0; 57 57 globalObject = 0; … … 61 61 62 62 ScopeChainNode* next; 63 JSObject*object;63 DeprecatedPtr<JSObject> object; 64 64 JSGlobalData* globalData; 65 65 JSGlobalObject* globalObject; … … 132 132 } 133 133 134 JSObject*const & operator*() const { return m_node->object; }135 JSObject*const * operator->() const { return &(operator*()); }134 DeprecatedPtr<JSObject> const & operator*() const { return m_node->object; } 135 DeprecatedPtr<JSObject> const * operator->() const { return &(operator*()); } 136 136 137 137 ScopeChainIterator& operator++() { m_node = m_node->next; return *this; } … … 196 196 ScopeChainNode* node() const { return m_node; } 197 197 198 JSObject* top() const { return m_node->object ; }198 JSObject* top() const { return m_node->object.get(); } 199 199 200 200 ScopeChainIterator begin() const { return m_node->begin(); }
Note:
See TracChangeset
for help on using the changeset viewer.