Lines Matching refs:heap
5 #include "src/heap/heap-layout-tracer.h"
9 #include "src/heap/new-spaces.h"
10 #include "src/heap/paged-spaces.h"
11 #include "src/heap/read-only-spaces.h"
12 #include "src/heap/spaces-inl.h"
22 Heap* heap = reinterpret_cast<i::Isolate*>(isolate)->heap();
24 PrintF("Before GC:%d,", heap->gc_count() + 1);
26 PrintHeapLayout(std::cout, heap);
34 Heap* heap = reinterpret_cast<i::Isolate*>(isolate)->heap();
35 PrintF("After GC:%d,", heap->gc_count());
37 PrintHeapLayout(std::cout, heap);
52 void HeapLayoutTracer::PrintHeapLayout(std::ostream& os, Heap* heap) {
53 for (PageIterator it = heap->new_space()->to_space().begin();
54 it != heap->new_space()->to_space().end(); ++it) {
58 for (PageIterator it = heap->new_space()->from_space().begin();
59 it != heap->new_space()->from_space().end(); ++it) {
63 OldGenerationMemoryChunkIterator it(heap);
69 for (ReadOnlyPage* page : heap->read_only_space()->pages()) {