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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.