Changeset 36877 in webkit for trunk/JavaScriptCore/kjs/lookup.cpp
- Timestamp:
- Sep 24, 2008, 5:39:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/lookup.cpp
r36286 r36877 55 55 } 56 56 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 72 57 void setUpStaticFunctionSlot(ExecState* exec, const HashEntry* entry, JSObject* thisObj, const Identifier& propertyName, PropertySlot& slot) 73 58 {
Note:
See TracChangeset
for help on using the changeset viewer.