Lines Matching refs:heap
5 #include "src/heap/cppgc/process-heap.h"
13 #include "src/heap/cppgc/heap-base.h"
14 #include "src/heap/cppgc/page-memory.h"
34 void HeapRegistry::RegisterHeap(HeapBase& heap) {
38 DCHECK_EQ(storage.end(), std::find(storage.begin(), storage.end(), &heap));
39 storage.push_back(&heap);
43 void HeapRegistry::UnregisterHeap(HeapBase& heap) {
47 // be present by the time a heap is removed from the registry.
48 DCHECK_NOT_NULL(heap.page_backend());
51 const auto pos = std::find(storage.begin(), storage.end(), &heap);
60 for (auto* heap : GetHeapRegistryStorage()) {
62 heap->page_backend()->Lookup(reinterpret_cast<ConstAddress>(needle));
63 if (address) return heap;