Changeset 34580 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Jun 15, 2008, 8:02:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r34578 r34580 79 79 } 80 80 81 inline String Instance* StringInstance::create(ExecState* exec, JSString* string)82 { 83 return new String Instance(exec->lexicalGlobalObject()->stringPrototype(), string);81 inline StringObject* StringObject::create(ExecState* exec, JSString* string) 82 { 83 return new StringObject(exec->lexicalGlobalObject()->stringPrototype(), string); 84 84 } 85 85 86 86 JSObject* JSString::toObject(ExecState* exec) const 87 87 { 88 return String Instance::create(exec, const_cast<JSString*>(this));88 return StringObject::create(exec, const_cast<JSString*>(this)); 89 89 } 90 90 91 91 JSObject* JSString::toThisObject(ExecState* exec) const 92 92 { 93 return String Instance::create(exec, const_cast<JSString*>(this));93 return StringObject::create(exec, const_cast<JSString*>(this)); 94 94 } 95 95 … … 115 115 if (getStringPropertySlot(exec, propertyName, slot)) 116 116 return true; 117 JSObject* object = String Instance::create(exec, this);117 JSObject* object = StringObject::create(exec, this); 118 118 slot.setBase(object); 119 119 if (object->JSObject::getOwnPropertySlot(exec, propertyName, slot)) … … 315 315 } 316 316 317 // ------------------------------ InternalFunction Imp--------------------------318 319 const ClassInfo InternalFunction Imp::info = { "Function", 0, 0, 0 };320 321 InternalFunction Imp::InternalFunctionImp()322 { 323 } 324 325 InternalFunction Imp::InternalFunctionImp(FunctionPrototype* funcProto, const Identifier& name)317 // ------------------------------ InternalFunction -------------------------- 318 319 const ClassInfo InternalFunction::info = { "Function", 0, 0, 0 }; 320 321 InternalFunction::InternalFunction() 322 { 323 } 324 325 InternalFunction::InternalFunction(FunctionPrototype* funcProto, const Identifier& name) 326 326 : JSObject(funcProto) 327 327 , m_name(name) … … 329 329 } 330 330 331 CallType InternalFunction Imp::getCallData(CallData&)331 CallType InternalFunction::getCallData(CallData&) 332 332 { 333 333 return CallTypeNative; 334 334 } 335 335 336 bool InternalFunction Imp::implementsHasInstance() const336 bool InternalFunction::implementsHasInstance() const 337 337 { 338 338 return true;
Note:
See TracChangeset
for help on using the changeset viewer.