Changeset 28468 in webkit for trunk/JavaScriptCore/bindings/runtime_root.cpp
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime_root.cpp
r28328 r28468 51 51 // fix them by adding a JSObject to RootObject dictionary. 52 52 53 RootObject* find RootObject(JSObject* jsObject)53 RootObject* findProtectingRootObject(JSObject* jsObject) 54 54 { 55 55 RootObjectSet::const_iterator end = rootObjectSet()->end(); … … 61 61 } 62 62 63 RootObject* findRootObject( Interpreter* interpreter)63 RootObject* findRootObject(JSGlobalObject* globalObject) 64 64 { 65 65 RootObjectSet::const_iterator end = rootObjectSet()->end(); 66 66 for (RootObjectSet::const_iterator it = rootObjectSet()->begin(); it != end; ++it) { 67 if ((*it)-> interpreter() == interpreter)67 if ((*it)->globalObject() == globalObject) 68 68 return *it; 69 69 } … … 281 281 } 282 282 283 Interpreter* RootObject::interpreter() const284 {285 ASSERT(m_isValid);286 return m_globalObject->interpreter();287 }288 289 283 JSGlobalObject* RootObject::globalObject() const 290 284 {
Note:
See TracChangeset
for help on using the changeset viewer.