Changeset 34355 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Jun 3, 2008, 5:40:47 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/API
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackObject.h
r33979 r34355 79 79 void init(ExecState*); 80 80 81 static JSValue* cachedValueGetter(ExecState*, JSObject*,const Identifier&, const PropertySlot&);82 static JSValue* staticValueGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot);83 static JSValue* staticFunctionGetter(ExecState*, JSObject*, const Identifier&, const PropertySlot& slot);84 static JSValue* callbackGetter(ExecState*, JSObject*,const Identifier&, const PropertySlot&);81 static JSValue* cachedValueGetter(ExecState*, const Identifier&, const PropertySlot&); 82 static JSValue* staticValueGetter(ExecState*, const Identifier&, const PropertySlot&); 83 static JSValue* staticFunctionGetter(ExecState*, const Identifier&, const PropertySlot&); 84 static JSValue* callbackGetter(ExecState*, const Identifier&, const PropertySlot&); 85 85 86 86 void* m_privateData; -
trunk/JavaScriptCore/API/JSCallbackObjectFunctions.h
r33979 r34355 428 428 429 429 template <class Base> 430 JSValue* JSCallbackObject<Base>::cachedValueGetter(ExecState*, JSObject*,const Identifier&, const PropertySlot& slot)430 JSValue* JSCallbackObject<Base>::cachedValueGetter(ExecState*, const Identifier&, const PropertySlot& slot) 431 431 { 432 432 JSValue* v = slot.slotBase(); … … 436 436 437 437 template <class Base> 438 JSValue* JSCallbackObject<Base>::staticValueGetter(ExecState* exec, JSObject*,const Identifier& propertyName, const PropertySlot& slot)438 JSValue* JSCallbackObject<Base>::staticValueGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot) 439 439 { 440 440 ASSERT(slot.slotBase()->inherits(&JSCallbackObject::info)); … … 457 457 458 458 template <class Base> 459 JSValue* JSCallbackObject<Base>::staticFunctionGetter(ExecState* exec, JSObject*,const Identifier& propertyName, const PropertySlot& slot)459 JSValue* JSCallbackObject<Base>::staticFunctionGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot) 460 460 { 461 461 ASSERT(slot.slotBase()->inherits(&JSCallbackObject::info)); … … 463 463 464 464 // Check for cached or override property. 465 PropertySlot slot2 ;465 PropertySlot slot2(thisObj); 466 466 if (thisObj->Base::getOwnPropertySlot(exec, propertyName, slot2)) 467 return slot2.getValue(exec, thisObj,propertyName);467 return slot2.getValue(exec, propertyName); 468 468 469 469 for (JSClassRef jsClass = thisObj->m_class; jsClass; jsClass = jsClass->parentClass) { … … 483 483 484 484 template <class Base> 485 JSValue* JSCallbackObject<Base>::callbackGetter(ExecState* exec, JSObject*,const Identifier& propertyName, const PropertySlot& slot)485 JSValue* JSCallbackObject<Base>::callbackGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot) 486 486 { 487 487 ASSERT(slot.slotBase()->inherits(&JSCallbackObject::info));
Note:
See TracChangeset
for help on using the changeset viewer.