Changeset 58267 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Apr 26, 2010, 3:44:48 PM (15 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSActivation.h
r55401 r58267 32 32 #include "CodeBlock.h" 33 33 #include "JSVariableObject.h" 34 #include "RegisterFile.h"35 34 #include "SymbolTable.h" 36 35 #include "Nodes.h" -
trunk/JavaScriptCore/runtime/JSGlobalObject.cpp
r56142 r58267 118 118 119 119 RegisterFile& registerFile = globalData()->interpreter->registerFile(); 120 if (registerFile.globalObject() == this) { 121 registerFile.setGlobalObject(0); 120 if (registerFile.clearGlobalObject(this)) 122 121 registerFile.setNumGlobals(0); 123 }124 122 d()->destructor(d()); 125 123 } -
trunk/JavaScriptCore/runtime/WeakGCPtr.h
r55256 r58267 45 45 } 46 46 47 voidclear(JSCell* ptr)47 bool clear(JSCell* ptr) 48 48 { 49 if (ptr == m_ptr) 49 if (ptr == m_ptr) { 50 50 m_ptr = 0; 51 return true; 52 } 53 return false; 51 54 } 52 55 … … 73 76 void assign(T* ptr) 74 77 { 75 if (ptr)76 78 ASSERT(ptr); 79 Heap::markCell(ptr); 77 80 m_ptr = ptr; 78 81 }
Note:
See TracChangeset
for help on using the changeset viewer.