Show
Ignore:
Timestamp:
08/18/08 11:14:49 (5 months ago)
Author:
odole
Message:

merge with webkit revision 35814

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/JavaScriptCore/kjs/RegExpObject.h

    r381 r440  
    3636        virtual ~RegExpObject(); 
    3737 
    38         void setRegExp(PassRefPtr<RegExp> r) { m_regExp = r; } 
    39         RegExp* regExp() const { return m_regExp.get(); } 
     38        void setRegExp(PassRefPtr<RegExp> r) { d->regExp = r; } 
     39        RegExp* regExp() const { return d->regExp.get(); } 
    4040 
    4141        JSValue* test(ExecState*, const ArgList&); 
     
    5050        static const ClassInfo info; 
    5151 
    52         void setLastIndex(double lastIndex) { m_lastIndex = lastIndex; } 
     52        void setLastIndex(double lastIndex) { d->lastIndex = lastIndex; } 
    5353 
    5454    private: 
     
    5656 
    5757        virtual CallType getCallData(CallData&); 
     58         
     59        struct RegExpObjectData { 
     60            RegExpObjectData(PassRefPtr<RegExp> regExp_, double lastIndex_) 
     61                : regExp(regExp_) 
     62                , lastIndex(lastIndex_) 
     63            { 
     64            } 
    5865 
    59         RefPtr<RegExp> m_regExp; 
    60         double m_lastIndex; 
     66            RefPtr<RegExp> regExp; 
     67            double lastIndex; 
     68        }; 
     69         
     70        OwnPtr<RegExpObjectData> d; 
    6171    }; 
    6272