Changeset 28309 in webkit for trunk/JavaScriptCore/bindings/runtime_root.cpp
- Timestamp:
- Dec 1, 2007, 3:56:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime_root.cpp
r23538 r28309 26 26 #include "runtime_root.h" 27 27 28 #include "JSGlobalObject.h" 28 29 #include "object.h" 29 30 #include "runtime.h" 30 31 #include "runtime_object.h" 31 32 32 #include <wtf/HashCountedSet.h> 33 33 #include <wtf/HashSet.h> … … 196 196 #endif 197 197 198 PassRefPtr<RootObject> RootObject::create(const void* nativeHandle, PassRefPtr<Interpreter> interpreter) 199 { 200 return new RootObject(nativeHandle, interpreter); 201 } 202 203 RootObject::RootObject(const void* nativeHandle, PassRefPtr<Interpreter> interpreter) 204 : m_refCount(0) 205 , m_isValid(true) 198 PassRefPtr<RootObject> RootObject::create(const void* nativeHandle, JSGlobalObject* globalObject) 199 { 200 return new RootObject(nativeHandle, globalObject); 201 } 202 203 RootObject::RootObject(const void* nativeHandle, JSGlobalObject* globalObject) 204 : m_isValid(true) 206 205 , m_nativeHandle(nativeHandle) 207 , m_ interpreter(interpreter)208 { 209 ASSERT( m_interpreter);206 , m_globalObject(globalObject) 207 { 208 ASSERT(globalObject); 210 209 rootObjectSet()->add(this); 211 210 } … … 233 232 234 233 m_nativeHandle = 0; 235 m_ interpreter= 0;234 m_globalObject = 0; 236 235 237 236 ProtectCountSet::iterator end = m_protectCountSet.end(); … … 285 284 { 286 285 ASSERT(m_isValid); 287 return m_ interpreter.get();286 return m_globalObject->interpreter(); 288 287 } 289 288
Note:
See TracChangeset
for help on using the changeset viewer.