Changeset 34754 in webkit for trunk/JavaScriptCore/kjs/JSValue.cpp
- Timestamp:
- Jun 23, 2008, 10:23:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSValue.cpp
r34659 r34754 256 256 } 257 257 258 bool JSCell::deleteProperty(ExecState* exec, const Identifier& identifier) 259 { 260 return toObject(exec)->deleteProperty(exec, identifier); 261 } 262 263 bool JSCell::deleteProperty(ExecState* exec, unsigned identifier) 264 { 265 return toObject(exec)->deleteProperty(exec, identifier); 266 } 267 258 268 JSObject* JSCell::toThisObject(ExecState* exec) const 259 269 { … … 261 271 } 262 272 273 const ClassInfo* JSCell::classInfo() const 274 { 275 return 0; 276 } 277 263 278 JSCell* jsString(ExecState* exec, const char* s) 264 279 { … … 276 291 } 277 292 293 JSValue* call(ExecState* exec, JSValue* functionObject, CallType callType, const CallData& callData, JSValue* thisValue, const ArgList& args) 294 { 295 if (callType == CallTypeNative) 296 return callData.native.function(exec, static_cast<JSObject*>(functionObject), thisValue, args); 297 ASSERT(callType == CallTypeJS); 298 // FIXME: This can be done more efficiently using the callData. 299 return static_cast<JSFunction*>(functionObject)->call(exec, thisValue, args); 300 } 301 302 JSObject* construct(ExecState* exec, JSValue* object, ConstructType constructType, const ConstructData& constructData, const ArgList& args) 303 { 304 if (constructType == ConstructTypeNative) 305 return constructData.native.function(exec, static_cast<JSObject*>(object), args); 306 ASSERT(constructType == ConstructTypeJS); 307 // FIXME: This can be done more efficiently using the constructData. 308 return static_cast<JSFunction*>(object)->construct(exec, args); 309 } 310 278 311 } // namespace KJS
Note:
See TracChangeset
for help on using the changeset viewer.