Changeset 36877 in webkit for trunk/JavaScriptCore/kjs/lookup.cpp


Ignore:
Timestamp:
Sep 24, 2008, 5:39:11 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-09-24 Sam Weinig <[email protected]>

Reviewed by Maciej Stachowiak.

Remove staticFunctionGetter. There is only one remaining user of
staticFunctionGetter and it can be converted to use setUpStaticFunctionSlot.

WebCore:

2008-09-24 Sam Weinig <[email protected]>

Reviewed by Maciej Stachowiak.

Remove staticFunctionGetter. There is only one remaining user of
staticFunctionGetter and it can be converted to use setUpStaticFunctionSlot.

  • bindings/js/JSDOMWindowBase.cpp: (WebCore::JSDOMWindowBase::getOwnPropertySlot):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/lookup.cpp

    r36286 r36877  
    5555}
    5656
    57 JSValue* staticFunctionGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot)
    58 {
    59     // Look for cached value in dynamic map of properties (in JSObject)
    60     ASSERT(slot.slotBase()->isObject());
    61     JSObject* thisObj = static_cast<JSObject*>(slot.slotBase());
    62     JSValue* cachedVal = thisObj->getDirect(propertyName);
    63     if (cachedVal)
    64         return cachedVal;
    65 
    66     const HashEntry* entry = slot.staticEntry();
    67     JSValue* val = new (exec) PrototypeFunction(exec, entry->length, propertyName, entry->functionValue);
    68     thisObj->putDirect(propertyName, val, entry->attributes);
    69     return val;
    70 }
    71 
    7257void setUpStaticFunctionSlot(ExecState* exec, const HashEntry* entry, JSObject* thisObj, const Identifier& propertyName, PropertySlot& slot)
    7358{
Note: See TracChangeset for help on using the changeset viewer.