Changeset 37257 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObject.h
- Timestamp:
- Oct 3, 2008, 2:39:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.h
r37191 r37257 55 55 56 56 struct JSGlobalObjectData : public JSVariableObjectData { 57 JSGlobalObjectData( JSGlobalObject* globalObject, JSObject* thisValue)57 JSGlobalObjectData() 58 58 : JSVariableObjectData(&symbolTable, 0) 59 59 , registerArraySize(0) 60 , globalScopeChain( globalObject, thisValue)60 , globalScopeChain(NoScopeChain()) 61 61 , regExpConstructor(0) 62 62 , errorConstructor(0) … … 77 77 , regExpPrototype(0) 78 78 { 79 Machine::initializeCallFrame(globalCallFrame + RegisterFile::CallFrameHeaderSize, 0, 0, globalScopeChain.node(), makeHostCallFramePointer(0), 0, 0, 0);80 79 } 81 80 … … 144 143 void* operator new(size_t, JSGlobalData*); 145 144 146 JSGlobalObject(JSGlobalData* globalData)147 : JSVariableObject(globalData->nullProtoStructureID, new JSGlobalObjectData (this, this))145 explicit JSGlobalObject(JSGlobalData* globalData) 146 : JSVariableObject(globalData->nullProtoStructureID, new JSGlobalObjectData) 148 147 { 149 init( );148 init(this); 150 149 } 151 150 152 151 protected: 153 JSGlobalObject(PassRefPtr<StructureID> structure, JSGlobalObjectData* data )152 JSGlobalObject(PassRefPtr<StructureID> structure, JSGlobalObjectData* data, JSObject* thisValue) 154 153 : JSVariableObject(structure, data) 155 154 { 156 init( );155 init(thisValue); 157 156 } 158 157 … … 268 267 private: 269 268 // FIXME: Fold reset into init. 270 void init( );269 void init(JSObject* thisValue); 271 270 void reset(JSValue* prototype); 272 271 … … 333 332 } 334 333 335 336 334 } // namespace JSC 337 335
Note:
See TracChangeset
for help on using the changeset viewer.