Changeset 27022 in webkit for trunk/JavaScriptCore/kjs/interpreter.cpp
- Timestamp:
- Oct 24, 2007, 11:38:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.cpp
r26808 r27022 80 80 return* map; 81 81 } 82 83 Interpreter::Interpreter(JS Object* globalObject)82 83 Interpreter::Interpreter(JSGlobalObject* globalObject) 84 84 : m_globalExec(this, 0) 85 85 , m_globalObject(globalObject) … … 90 90 Interpreter::Interpreter() 91 91 : m_globalExec(this, 0) 92 , m_globalObject(new JS Object())92 , m_globalObject(new JSGlobalObject()) 93 93 { 94 94 init(); … … 119 119 s_hook = next = prev = this; 120 120 } 121 interpreterMap().set(m_globalObject, this);122 121 123 122 initGlobalObject(); … … 138 137 s_hook = 0; 139 138 } 140 interpreterMap().remove(m_globalObject); 141 } 142 143 JSObject* Interpreter::globalObject() const 144 { 145 return m_globalObject; 139 } 140 141 JSGlobalObject* Interpreter::globalObject() const 142 { 143 return m_globalObject; 146 144 } 147 145 148 146 void Interpreter::initGlobalObject() 149 147 { 148 m_globalObject->setInterpreter(this); 149 150 150 // Clear before inititalizing, to avoid marking uninitialized (dangerous) or 151 151 // stale (wasteful) pointers during initialization. 152 152 153 153 // Prototypes 154 154 m_FunctionPrototype = 0; … … 348 348 m_recursion++; 349 349 350 JS Object* globalObj = m_globalObject;350 JSGlobalObject* globalObj = m_globalObject; 351 351 JSObject* thisObj = globalObj; 352 352 … … 611 611 } 612 612 613 Interpreter* Interpreter::interpreterWithGlobalObject(JSObject* globalObject)614 {615 return interpreterMap().get(globalObject);616 }617 618 613 #ifdef KJS_DEBUG_MEM 619 614 #include "lexer.h"
Note:
See TracChangeset
for help on using the changeset viewer.