Ignore:
Timestamp:
Oct 11, 2008, 10:00:28 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-11 Cameron Zwarich <[email protected]>

Reviewed by Sam Weinig.

Clean up RegExpMatchesArray.h to match our coding style.

  • kjs/RegExpMatchesArray.h: (JSC::RegExpMatchesArray::getOwnPropertySlot): (JSC::RegExpMatchesArray::put): (JSC::RegExpMatchesArray::deleteProperty): (JSC::RegExpMatchesArray::getPropertyNames):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/RegExpMatchesArray.h

    r36755 r37520  
    2525namespace JSC {
    2626
    27 class RegExpMatchesArray : public JSArray {
    28 public:
    29     RegExpMatchesArray(ExecState*, RegExpConstructorPrivate*);
    30     virtual ~RegExpMatchesArray();
     27    class RegExpMatchesArray : public JSArray {
     28    public:
     29        RegExpMatchesArray(ExecState*, RegExpConstructorPrivate*);
     30        virtual ~RegExpMatchesArray();
    3131
    32 private:
    33     virtual bool getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) { if (lazyCreationData()) fillArrayInstance(exec); return JSArray::getOwnPropertySlot(exec, propertyName, slot); }
    34     virtual bool getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot) { if (lazyCreationData()) fillArrayInstance(exec); return JSArray::getOwnPropertySlot(exec, propertyName, slot); }
    35     virtual void put(ExecState* exec, const Identifier& propertyName, JSValue* v, PutPropertySlot& slot) { if (lazyCreationData()) fillArrayInstance(exec); JSArray::put(exec, propertyName, v, slot); }
    36     virtual void put(ExecState* exec, unsigned propertyName, JSValue* v) { if (lazyCreationData()) fillArrayInstance(exec); JSArray::put(exec, propertyName, v); }
    37     virtual bool deleteProperty(ExecState* exec, const Identifier& propertyName) { if (lazyCreationData()) fillArrayInstance(exec); return JSArray::deleteProperty(exec, propertyName); }
    38     virtual bool deleteProperty(ExecState* exec, unsigned propertyName) { if (lazyCreationData()) fillArrayInstance(exec); return JSArray::deleteProperty(exec, propertyName); }
    39     virtual void getPropertyNames(ExecState* exec, PropertyNameArray& arr) { if (lazyCreationData()) fillArrayInstance(exec); JSArray::getPropertyNames(exec, arr); }
     32    private:
     33        virtual bool getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
     34        {
     35            if (lazyCreationData())
     36                fillArrayInstance(exec);
     37            return JSArray::getOwnPropertySlot(exec, propertyName, slot);
     38        }
    4039
    41     void fillArrayInstance(ExecState*);
     40        virtual bool getOwnPropertySlot(ExecState* exec, unsigned propertyName, PropertySlot& slot)
     41        {
     42            if (lazyCreationData())
     43                fillArrayInstance(exec);
     44            return JSArray::getOwnPropertySlot(exec, propertyName, slot);
     45        }
     46
     47        virtual void put(ExecState* exec, const Identifier& propertyName, JSValue* v, PutPropertySlot& slot)
     48        {
     49            if (lazyCreationData())
     50                fillArrayInstance(exec);
     51            JSArray::put(exec, propertyName, v, slot);
     52        }
     53
     54        virtual void put(ExecState* exec, unsigned propertyName, JSValue* v)
     55        {
     56            if (lazyCreationData())
     57                fillArrayInstance(exec);
     58            JSArray::put(exec, propertyName, v);
     59        }
     60
     61        virtual bool deleteProperty(ExecState* exec, const Identifier& propertyName)
     62        {
     63            if (lazyCreationData())
     64                fillArrayInstance(exec);
     65            return JSArray::deleteProperty(exec, propertyName);
     66        }
     67
     68        virtual bool deleteProperty(ExecState* exec, unsigned propertyName)
     69        {
     70            if (lazyCreationData())
     71                fillArrayInstance(exec);
     72            return JSArray::deleteProperty(exec, propertyName);
     73        }
     74
     75        virtual void getPropertyNames(ExecState* exec, PropertyNameArray& arr)
     76        {
     77            if (lazyCreationData())
     78                fillArrayInstance(exec);
     79            JSArray::getPropertyNames(exec, arr);
     80        }
     81
     82        void fillArrayInstance(ExecState*);
    4283};
    4384
Note: See TracChangeset for help on using the changeset viewer.