Changeset 81262 in webkit for trunk/Source/JavaScriptCore/runtime/ConservativeSet.h
- Timestamp:
- Mar 16, 2011, 11:35:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/ConservativeSet.h
r80995 r81262 27 27 #define ConservativeRoots_h 28 28 29 #include "Heap.h" 29 30 #include <wtf/OSAllocator.h> 30 31 #include <wtf/Vector.h> … … 42 43 ~ConservativeRoots(); 43 44 45 void add(void*); 44 46 void add(void* begin, void* end); 45 47 … … 74 76 } 75 77 78 inline void ConservativeRoots::add(void* p) 79 { 80 if (!m_heap->contains(p)) 81 return; 82 83 if (m_size == m_capacity) 84 grow(); 85 86 m_roots[m_size++] = reinterpret_cast<JSCell*>(p); 87 } 88 76 89 inline size_t ConservativeRoots::size() 77 90 {
Note:
See TracChangeset
for help on using the changeset viewer.