⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98367 in webkit


Ignore:
Timestamp:
Oct 25, 2011, 11:51:49 AM (15 years ago)
Author:
mhahnenberg@apple.com
Message:

Add getOwnPropertySlot to MethodTable
https://bugs.webkit.org/show_bug.cgi?id=69807

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

  • JavaScriptCore.exp:
  • runtime/ClassInfo.h: Added both versions of getOwnPropertySlot to the MethodTable.
  • runtime/JSCell.h: Changed getOwnPropertySlot to be protected so other classes can

reference it in their MethodTables.

Source/WebCore:

No new tests.

  • bridge/runtime_method.h: Changed getOwnPropertySlot to be protected so

subclasses can reference it in their MethodTables.

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r98365 r98367  
     12011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        Add getOwnPropertySlot to MethodTable
     4        https://bugs.webkit.org/show_bug.cgi?id=69807
     5
     6        Reviewed by Oliver Hunt.
     7
     8        * JavaScriptCore.exp:
     9        * runtime/ClassInfo.h: Added both versions of getOwnPropertySlot to the MethodTable.
     10        * runtime/JSCell.h: Changed getOwnPropertySlot to be protected so other classes can
     11        reference it in their MethodTables.
     12
    1132011-10-25  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/Source/JavaScriptCore/JavaScriptCore.exp

    r98316 r98367  
    118118__ZN3JSC11JSByteArray10putByIndexEPNS_6JSCellEPNS_9ExecStateEjNS_7JSValueE
    119119__ZN3JSC11JSByteArray15createStructureERNS_12JSGlobalDataEPNS_14JSGlobalObjectENS_7JSValueEPKNS_9ClassInfoE
     120__ZN3JSC11JSByteArray18getOwnPropertySlotEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE
     121__ZN3JSC11JSByteArray25getOwnPropertySlotByIndexEPNS_6JSCellEPNS_9ExecStateEjRNS_12PropertySlotE
    120122__ZN3JSC11JSByteArray3putEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueERNS_15PutPropertySlotE
    121123__ZN3JSC11JSByteArray6s_infoE
  • trunk/Source/JavaScriptCore/runtime/ClassInfo.h

    r98205 r98367  
    5353        typedef bool (*DeletePropertyByIndexFunctionPtr)(JSCell*, ExecState*, unsigned);
    5454        DeletePropertyByIndexFunctionPtr deletePropertyByIndex;
     55
     56        typedef bool (*GetOwnPropertySlotFunctionPtr)(JSCell*, ExecState*, const Identifier&, PropertySlot&);
     57        GetOwnPropertySlotFunctionPtr getOwnPropertySlot;
     58
     59        typedef bool (*GetOwnPropertySlotByIndexFunctionPtr)(JSCell*, ExecState*, unsigned, PropertySlot&);
     60        GetOwnPropertySlotByIndexFunctionPtr getOwnPropertySlotByIndex;
    5561    };
    5662
     
    6369        &ClassName::deleteProperty, \
    6470        &ClassName::deletePropertyByIndex, \
     71        &ClassName::getOwnPropertySlot, \
     72        &ClassName::getOwnPropertySlotByIndex, \
    6573    }, \
    6674    sizeof(ClassName)
  • trunk/Source/JavaScriptCore/runtime/JSCell.h

    r98261 r98367  
    133133        void finishCreation(JSGlobalData&, Structure*, CreatingEarlyCellTag);
    134134
    135     private:
    136135        // Base implementation; for non-object classes implements getPropertySlot.
    137136        virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&);
     
    140139        static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&);
    141140       
     141    private:
    142142        WriteBarrier<Structure> m_structure;
    143143    };
  • trunk/Source/WebCore/ChangeLog

    r98361 r98367  
     12011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        Add getOwnPropertySlot to MethodTable
     4        https://bugs.webkit.org/show_bug.cgi?id=69807
     5
     6        Reviewed by Oliver Hunt.
     7
     8        No new tests.
     9
     10        * bridge/runtime_method.h: Changed getOwnPropertySlot to be protected so
     11        subclasses can reference it in their MethodTables.
     12
    1132011-10-25  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebCore/bridge/runtime_method.h

    r97537 r98367  
    6565    static CallType getCallData(JSCell*, CallData&);
    6666
     67    virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);
     68    static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);
     69
    6770private:
    6871    static JSValue lengthGetter(ExecState*, JSValue, const Identifier&);
    69     virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);
    70     static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);
    7172    virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
    7273
Note: See TracChangeset for help on using the changeset viewer.