Changeset 113508 in webkit for trunk/Source/JavaScriptCore/heap/WeakSet.cpp
- Timestamp:
- Apr 6, 2012, 3:35:55 PM (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/WeakSet.cpp
r113502 r113508 25 25 26 26 #include "config.h" 27 #include "Weak Heap.h"27 #include "WeakSet.h" 28 28 29 29 #include "Heap.h" … … 31 31 namespace JSC { 32 32 33 Weak Heap::~WeakHeap()33 WeakSet::~WeakSet() 34 34 { 35 35 WeakBlock* next = 0; … … 41 41 } 42 42 43 void Weak Heap::finalizeAll()43 void WeakSet::finalizeAll() 44 44 { 45 45 for (WeakBlock* block = static_cast<WeakBlock*>(m_blocks.head()); block; block = static_cast<WeakBlock*>(block->next())) … … 47 47 } 48 48 49 void Weak Heap::visitLiveWeakImpls(HeapRootVisitor& visitor)49 void WeakSet::visitLiveWeakImpls(HeapRootVisitor& visitor) 50 50 { 51 51 for (WeakBlock* block = static_cast<WeakBlock*>(m_blocks.head()); block; block = static_cast<WeakBlock*>(block->next())) … … 53 53 } 54 54 55 void Weak Heap::visitDeadWeakImpls(HeapRootVisitor& visitor)55 void WeakSet::visitDeadWeakImpls(HeapRootVisitor& visitor) 56 56 { 57 57 for (WeakBlock* block = static_cast<WeakBlock*>(m_blocks.head()); block; block = static_cast<WeakBlock*>(block->next())) … … 59 59 } 60 60 61 void Weak Heap::sweep()61 void WeakSet::sweep() 62 62 { 63 63 WeakBlock* next; … … 74 74 } 75 75 76 void Weak Heap::resetAllocator()76 void WeakSet::resetAllocator() 77 77 { 78 78 m_allocator = 0; … … 80 80 } 81 81 82 WeakBlock::FreeCell* Weak Heap::findAllocator()82 WeakBlock::FreeCell* WeakSet::findAllocator() 83 83 { 84 84 if (WeakBlock::FreeCell* allocator = tryFindAllocator()) … … 94 94 } 95 95 96 WeakBlock::FreeCell* Weak Heap::tryFindAllocator()96 WeakBlock::FreeCell* WeakSet::tryFindAllocator() 97 97 { 98 98 while (m_nextAllocator) { … … 109 109 } 110 110 111 WeakBlock::FreeCell* Weak Heap::addAllocator()111 WeakBlock::FreeCell* WeakSet::addAllocator() 112 112 { 113 113 WeakBlock* block = WeakBlock::create(); … … 118 118 } 119 119 120 void Weak Heap::removeAllocator(WeakBlock* block)120 void WeakSet::removeAllocator(WeakBlock* block) 121 121 { 122 122 m_blocks.remove(block);
Note:
See TracChangeset
for help on using the changeset viewer.