Ignore:
Timestamp:
Sep 16, 2011, 1:32:15 PM (14 years ago)
Author:
[email protected]
Message:

Rationalize JSObject::putDirect* methods
https://bugs.webkit.org/show_bug.cgi?id=68274

Reviewed by Sam Weinig.

Delete the *Function variants. These are overall inefficient,
in the way they get the name back from the function rather
than just passing it in.

(GlobalObject::finishCreation):
(GlobalObject::addFunction):

  • runtime/FunctionPrototype.cpp:

(JSC::FunctionPrototype::addFunctionProperties):

  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::reset):

  • runtime/JSObject.cpp:

(JSC::JSObject::put):
(JSC::JSObject::putWithAttributes):
(JSC::JSObject::defineGetter):
(JSC::JSObject::defineSetter):

  • runtime/JSObject.h:

(JSC::JSObject::putDirect):
(JSC::JSObject::putDirectWithoutTransition):

  • runtime/Lookup.cpp:

(JSC::setUpStaticFunctionSlot):

  • runtime/Lookup.h:

(JSC::lookupPut):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/Lookup.h

    r95310 r95318  
    334334        if (entry->attributes() & Function) { // function: put as override property
    335335            if (LIKELY(value.isCell()))
    336                 thisObj->putDirectFunction(exec->globalData(), propertyName, value.asCell());
     336                thisObj->putDirect(exec->globalData(), propertyName, value.asCell());
    337337            else
    338338                thisObj->putDirect(exec->globalData(), propertyName, value);
Note: See TracChangeset for help on using the changeset viewer.