Changeset 76425 in webkit for trunk/Source/JavaScriptCore/runtime/MarkStack.h
- Timestamp:
- Jan 21, 2011, 8:27:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/MarkStack.h
r76331 r76425 28 28 29 29 #include "JSValue.h" 30 #include <wtf/ HashSet.h>30 #include <wtf/Vector.h> 31 31 #include <wtf/Noncopyable.h> 32 32 #include <wtf/OSAllocator.h> … … 191 191 class ConservativeSet { 192 192 public: 193 void add(JSCell* cell) { m_ set.add(cell); }193 void add(JSCell* cell) { m_vector.append(cell); } 194 194 void mark(MarkStack& markStack) 195 195 { 196 HashSet<JSCell*>::iterator end = m_set.end(); 197 for (HashSet<JSCell*>::iterator it = m_set.begin(); it != end; ++it) 198 markStack.append(*it); 196 for (size_t i = 0; i < m_vector.size(); ++i) 197 markStack.append(m_vector[i]); 199 198 } 200 199 201 200 private: 202 HashSet<JSCell*> m_set;201 Vector<JSCell*, 64> m_vector; 203 202 }; 204 203 }
Note:
See TracChangeset
for help on using the changeset viewer.