Changeset 99357 in webkit for trunk/Source/JavaScriptCore


Ignore:
Timestamp:
Nov 5, 2011, 1:29:01 PM (14 years ago)
Author:
[email protected]
Message:

Reduce the number of putWithAttributes
https://bugs.webkit.org/show_bug.cgi?id=71597

Reviewed by Adam Roben.

Remove exports of removed functions.

  • runtime/JSActivation.cpp:

(JSC::JSActivation::putWithAttributes):
Calling the overload without the extra parameters does the same thing.

  • runtime/JSObject.cpp:

(JSC::JSObject::putWithAttributes):

  • runtime/JSObject.h:

Remove four unused JSObject::putWithAttributes overloads and make one of the remaining
two overloads not virtual, since no one overrides it.

Location:
trunk/Source/JavaScriptCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r99333 r99357  
     12011-11-04  Sam Weinig  <[email protected]>
     2
     3        Reduce the number of putWithAttributes
     4        https://bugs.webkit.org/show_bug.cgi?id=71597
     5
     6        Reviewed by Adam Roben.
     7
     8        * JavaScriptCore.exp:
     9        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
     10        Remove exports of removed functions.
     11
     12        * runtime/JSActivation.cpp:
     13        (JSC::JSActivation::putWithAttributes):
     14        Calling the overload without the extra parameters does the same thing.
     15
     16        * runtime/JSObject.cpp:
     17        (JSC::JSObject::putWithAttributes):
     18        * runtime/JSObject.h:
     19        Remove four unused JSObject::putWithAttributes overloads and make one of the remaining
     20        two overloads not virtual, since no one overrides it.
     21
    1222011-11-04  Pratik Solanki  <[email protected]>
    223
  • trunk/Source/JavaScriptCore/JavaScriptCore.exp

    r99312 r99357  
    317317__ZN3JSC8JSObject17preventExtensionsERNS_12JSGlobalDataE
    318318__ZN3JSC8JSObject17putWithAttributesEPNS_12JSGlobalDataERKNS_10IdentifierENS_7JSValueEj
    319 __ZN3JSC8JSObject17putWithAttributesEPNS_12JSGlobalDataERKNS_10IdentifierENS_7JSValueEjbRNS_15PutPropertySlotE
    320 __ZN3JSC8JSObject17putWithAttributesEPNS_12JSGlobalDataEjNS_7JSValueEj
    321319__ZN3JSC8JSObject17putWithAttributesEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueEj
    322 __ZN3JSC8JSObject17putWithAttributesEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueEjbRNS_15PutPropertySlotE
    323 __ZN3JSC8JSObject17putWithAttributesEPNS_9ExecStateEjNS_7JSValueEj
    324320__ZN3JSC8JSObject19getOwnPropertyNamesEPS0_PNS_9ExecStateERNS_17PropertyNameArrayENS_15EnumerationModeE
    325321__ZN3JSC8JSObject21deletePropertyByIndexEPNS_6JSCellEPNS_9ExecStateEj
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def

    r99312 r99357  
    271271    ?putWithAttributes@JSGlobalObject@JSC@@UAEXPAVExecState@2@ABVIdentifier@2@VJSValue@2@I@Z
    272272    ?putWithAttributes@JSObject@JSC@@UAEXPAVExecState@2@ABVIdentifier@2@VJSValue@2@I@Z
    273     ?putWithAttributes@JSObject@JSC@@UAEXPAVExecState@2@ABVIdentifier@2@VJSValue@2@I_NAAVPutPropertySlot@2@@Z
    274     ?putWithAttributes@JSObject@JSC@@UAEXPAVExecState@2@IVJSValue@2@I@Z
    275273    ?putWithAttributes@JSObject@JSC@@UAEXPAVJSGlobalData@2@ABVIdentifier@2@VJSValue@2@I@Z
    276     ?putWithAttributes@JSObject@JSC@@UAEXPAVJSGlobalData@2@ABVIdentifier@2@VJSValue@2@I_NAAVPutPropertySlot@2@@Z
    277     ?putWithAttributes@JSObject@JSC@@UAEXPAVJSGlobalData@2@IVJSValue@2@I@Z
    278274    ?randomNumber@WTF@@YANXZ
    279275    ?recompileAllJSFunctions@Debugger@JSC@@QAEXPAVJSGlobalData@2@@Z
  • trunk/Source/JavaScriptCore/runtime/JSActivation.cpp

    r99126 r99357  
    193193    // expose in the activation object.
    194194    ASSERT(!hasGetterSetterProperties());
    195     PutPropertySlot slot;
    196     JSObject::putWithAttributes(exec, propertyName, value, attributes, true, slot);
     195    JSObject::putWithAttributes(exec, propertyName, value, attributes);
    197196}
    198197
  • trunk/Source/JavaScriptCore/runtime/JSObject.cpp

    r99312 r99357  
    201201}
    202202
    203 void JSObject::putWithAttributes(JSGlobalData* globalData, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot)
    204 {
    205     putDirectInternal(*globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction(value));
     203void JSObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes)
     204{
     205    PutPropertySlot slot;
     206    putDirectInternal(exec->globalData(), propertyName, value, attributes, true, slot, getJSFunction(value));
    206207}
    207208
     
    210211    PutPropertySlot slot;
    211212    putDirectInternal(*globalData, propertyName, value, attributes, true, slot, getJSFunction(value));
    212 }
    213 
    214 void JSObject::putWithAttributes(JSGlobalData* globalData, unsigned propertyName, JSValue value, unsigned attributes)
    215 {
    216     putWithAttributes(globalData, Identifier::from(globalData, propertyName), value, attributes);
    217 }
    218 
    219 void JSObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot)
    220 {
    221     JSGlobalData& globalData = exec->globalData();
    222     putDirectInternal(globalData, propertyName, value, attributes, checkReadOnly, slot, getJSFunction(value));
    223 }
    224 
    225 void JSObject::putWithAttributes(ExecState* exec, const Identifier& propertyName, JSValue value, unsigned attributes)
    226 {
    227     PutPropertySlot slot;
    228     JSGlobalData& globalData = exec->globalData();
    229     putDirectInternal(globalData, propertyName, value, attributes, true, slot, getJSFunction(value));
    230 }
    231 
    232 void JSObject::putWithAttributes(ExecState* exec, unsigned propertyName, JSValue value, unsigned attributes)
    233 {
    234     putWithAttributes(exec, Identifier::from(exec, propertyName), value, attributes);
    235213}
    236214
  • trunk/Source/JavaScriptCore/runtime/JSObject.h

    r99312 r99357  
    107107        static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue);
    108108
    109         virtual void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot);
    110         virtual void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue value, unsigned attributes);
    111         virtual void putWithAttributes(JSGlobalData*, unsigned propertyName, JSValue value, unsigned attributes);
    112         virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes, bool checkReadOnly, PutPropertySlot& slot);
    113         virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue value, unsigned attributes);
    114         virtual void putWithAttributes(ExecState*, unsigned propertyName, JSValue value, unsigned attributes);
     109        virtual void putWithAttributes(ExecState*, const Identifier& propertyName, JSValue, unsigned attributes);
     110        void putWithAttributes(JSGlobalData*, const Identifier& propertyName, JSValue, unsigned attributes);
    115111
    116112        bool propertyIsEnumerable(ExecState*, const Identifier& propertyName) const;
Note: See TracChangeset for help on using the changeset viewer.