Ignore:
Timestamp:
Jan 31, 2011, 12:07:21 PM (14 years ago)
Author:
[email protected]
Message:

2011-01-31 Oliver Hunt <[email protected]>

Convert markstack to a slot visitor API
https://bugs.webkit.org/show_bug.cgi?id=53219

rolling r77098, r77099, r77100, r77109, and
r77111 back in, along with a few more Qt fix attempts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/ScopeChain.h

    r77113 r77151  
    2222#define ScopeChain_h
    2323
     24#include "WriteBarrier.h"
    2425#include <wtf/FastAllocBase.h>
    2526
     
    5354        {
    5455            next = 0;
    55             object = 0;
    5656            globalData = 0;
    5757            globalObject = 0;
     
    6161
    6262        ScopeChainNode* next;
    63         JSObject* object;
     63        DeprecatedPtr<JSObject> object;
    6464        JSGlobalData* globalData;
    6565        JSGlobalObject* globalObject;
     
    132132        }
    133133
    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*()); }
    136136   
    137137        ScopeChainIterator& operator++() { m_node = m_node->next; return *this; }
     
    196196        ScopeChainNode* node() const { return m_node; }
    197197
    198         JSObject* top() const { return m_node->object; }
     198        JSObject* top() const { return m_node->object.get(); }
    199199
    200200        ScopeChainIterator begin() const { return m_node->begin(); }
Note: See TracChangeset for help on using the changeset viewer.