Changeset 37759 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Oct 20, 2008, 11:08:06 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.h
r37730 r37759 142 142 void* operator new(size_t, JSGlobalData*); 143 143 144 explicit JSGlobalObject( JSGlobalData* globalData)145 : JSVariableObject( globalData->nullProtoStructureID, new JSGlobalObjectData)144 explicit JSGlobalObject() 145 : JSVariableObject(JSGlobalObject::createStructureID(jsNull()), new JSGlobalObjectData) 146 146 { 147 147 init(this); -
trunk/JavaScriptCore/kjs/Shell.cpp
r37684 r37759 152 152 class GlobalObject : public JSGlobalObject { 153 153 public: 154 GlobalObject( JSGlobalData*,const Vector<UString>& arguments);154 GlobalObject(const Vector<UString>& arguments); 155 155 virtual UString className() const { return "global"; } 156 156 }; … … 158 158 ASSERT_CLASS_FITS_IN_CELL(GlobalObject); 159 159 160 GlobalObject::GlobalObject( JSGlobalData* globalData,const Vector<UString>& arguments)161 : JSGlobalObject( globalData)160 GlobalObject::GlobalObject(const Vector<UString>& arguments) 161 : JSGlobalObject() 162 162 { 163 163 putDirectFunction(globalExec(), new (globalExec()) PrototypeFunction(globalExec(), prototypeFunctionStructure(), 1, Identifier(globalExec(), "debug"), functionDebug)); … … 464 464 parseArguments(argc, argv, options); 465 465 466 GlobalObject* globalObject = new (globalData) GlobalObject( globalData,options.arguments);466 GlobalObject* globalObject = new (globalData) GlobalObject(options.arguments); 467 467 bool success = runWithScripts(globalObject, options.fileNames, options.prettyPrint, options.dump); 468 468 if (options.interactive && success)
Note:
See TracChangeset
for help on using the changeset viewer.