Changeset 93378 in webkit for trunk/Source/JavaScriptCore/runtime/StringObject.h
- Timestamp:
- Aug 18, 2011, 5:58:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/StringObject.h
r92706 r93378 33 33 static StringObject* create(ExecState* exec, Structure* structure) 34 34 { 35 return new (allocateCell<StringObject>(*exec->heap())) StringObject(exec, structure); 35 JSString* string = jsEmptyString(exec); 36 return new (allocateCell<StringObject>(*exec->heap())) StringObject(exec->globalData(), structure, string); 36 37 } 37 38 static StringObject* create(ExecState* exec, Structure* structure, const UString& str) 38 39 { 39 return new (allocateCell<StringObject>(*exec->heap())) StringObject(exec, structure, str); 40 JSString* string = jsString(exec, str); 41 return new (allocateCell<StringObject>(*exec->heap())) StringObject(exec->globalData(), structure, string); 40 42 } 41 43 static StringObject* create(ExecState*, JSGlobalObject*, JSString*); 42 43 44 44 45 virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); … … 60 61 61 62 protected: 62 StringObject(ExecState*, Structure*);63 StringObject(ExecState*, Structure*, const UString&);64 63 static const unsigned StructureFlags = OverridesGetOwnPropertySlot | OverridesGetPropertyNames | JSWrapperObject::StructureFlags; 65 64 StringObject(JSGlobalData&, Structure*, JSString*);
Note:
See TracChangeset
for help on using the changeset viewer.