Changeset 31746 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObject.h
- Timestamp:
- Apr 8, 2008, 7:17:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.h
r31173 r31746 77 77 78 78 struct JSGlobalObjectData : public JSVariableObjectData { 79 JSGlobalObjectData(JSGlobalObject* globalObject )79 JSGlobalObjectData(JSGlobalObject* globalObject, JSObject* thisValue) 80 80 : JSVariableObjectData(&inlineSymbolTable) 81 , globalExec(globalObject )81 , globalExec(globalObject, thisValue) 82 82 { 83 83 } … … 142 142 public: 143 143 JSGlobalObject() 144 : JSVariableObject(new JSGlobalObjectData(this ))144 : JSVariableObject(new JSGlobalObjectData(this, this)) 145 145 { 146 146 init(); … … 148 148 149 149 protected: 150 JSGlobalObject(JSValue* proto )151 : JSVariableObject(proto, new JSGlobalObjectData(this ))150 JSGlobalObject(JSValue* proto, JSObject* globalThisValue) 151 : JSVariableObject(proto, new JSGlobalObjectData(this, globalThisValue)) 152 152 { 153 153 init(); … … 226 226 227 227 virtual bool isGlobalObject() const { return true; } 228 virtual JSGlobalObject* toGlobalObject(ExecState*) const; 228 229 229 230 virtual ExecState* globalExec();
Note:
See TracChangeset
for help on using the changeset viewer.