Changeset 34412 in webkit for trunk/JavaScriptCore/kjs/JSGlobalObject.h
- Timestamp:
- Jun 6, 2008, 11:03:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSGlobalObject.h
r34143 r34412 24 24 #define KJS_GlobalObject_h 25 25 26 #include "JSGlobalData.h" 26 27 #include "JSVariableObject.h" 27 28 #include "RegisterFile.h" … … 72 73 class UriErrorPrototype; 73 74 struct ActivationStackNode; 74 struct ThreadClassInfoHashTables;75 75 76 76 typedef Vector<ExecState*, 16> ExecStateStack; … … 84 84 : JSVariableObjectData(&symbolTable, registerFileStack.globalBasePointer(), 0) 85 85 , globalScopeChain(globalObject, thisValue) 86 , globalExec(new ExecState(globalObject, thisValue, globalScopeChain.node()))87 86 { 88 87 } … … 143 142 unsigned pageGroupIdentifier; 144 143 145 PerThreadData perThreadData;144 JSGlobalData* globalData; 146 145 147 146 HashSet<ProgramCodeBlock*> codeBlocks; … … 176 175 virtual void defineSetter(ExecState*, const Identifier& propertyName, JSObject* setterFunc); 177 176 178 // Linked list of all global objects.179 static JSGlobalObject* head() { return s_head; }177 // Per-thread linked list of all global objects. 178 static JSGlobalObject*& head() { return JSGlobalData::threadInstance().head; } 180 179 JSGlobalObject* next() { return d()->next; } 181 180 … … 260 259 261 260 // Per-thread hash tables, cached on the global object for faster access. 262 const PerThreadData* perThreadData() const { return &d()->perThreadData; } 263 264 // Initialize and/or retrieve per-thread hash tables - use perThreadData() for faster access instead. 265 static ThreadClassInfoHashTables* threadClassInfoHashTables(); 261 JSGlobalData* globalData() { return d()->globalData; } 266 262 267 263 void init(JSObject* thisValue);
Note:
See TracChangeset
for help on using the changeset viewer.