Lines Matching refs:heap

5 #include "src/heap/read-only-spaces.h"
15 #include "src/heap/allocation-stats.h"
16 #include "src/heap/basic-memory-chunk.h"
17 #include "src/heap/combined-heap.h"
18 #include "src/heap/heap-inl.h"
19 #include "src/heap/memory-allocator.h"
20 #include "src/heap/memory-chunk.h"
21 #include "src/heap/read-only-heap.h"
53 // The read-only heap was set up from a snapshot. Make sure it's the always
57 "Attempt to create the read-only heap after already "
72 // If there's no checksum, then that means the read-only heap objects are
108 std::make_unique<SharedReadOnlySpace>(isolate->heap(), this));
112 isolate->heap()->ReplaceReadOnlySpace(shared_read_only_space());
121 DCHECK_EQ(shared_read_only_space(), isolate->heap()->read_only_space());
150 bool success = isolate->heap()
171 new SharedReadOnlySpace(isolate->heap(), std::move(pages),
251 std::make_unique<SharedReadOnlySpace>(isolate->heap(), this));
258 Heap* heap = isolate->heap();
259 heap->read_only_space()->TearDown(heap->memory_allocator());
261 heap->ReplaceReadOnlySpace(CreateReadOnlySpace(heap->isolate()));
263 DCHECK_NE(heap->read_only_space(), shared_read_only_space());
267 isolate->heap()->read_only_space());
279 DCHECK_NE(shared_read_only_space(), isolate->heap()->read_only_space());
283 isolate->heap()->read_only_space());
289 ReadOnlySpace::ReadOnlySpace(Heap* heap)
290 : BaseSpace(heap, RO_SPACE),
293 is_string_padding_cleared_(heap->isolate()->initialized_from_snapshot()),
322 Heap* heap = ReadOnlySpace::heap();
329 artifacts->Initialize(heap->isolate(), std::move(pages_), accounting_stats_);
332 ReadOnlyPage::ReadOnlyPage(Heap* heap, BaseSpace* space, size_t chunk_size,
335 : BasicMemoryChunk(heap, space, chunk_size, area_start, area_end,
339 heap->incremental_marking()
364 // on the heap. If there was already a free list then the elements on it
378 heap()->CreateFillerObjectAt(start, static_cast<int>(end - start),
386 // TODO(v8:11641): Revisit this once third-party heap supports iteration.
407 auto* memory_allocator = heap()->memory_allocator();
427 SetPermissionsForPages(heap()->memory_allocator(),
445 ReadOnlySpaceObjectIterator(const Heap* heap, const ReadOnlySpace* space,
492 explicit VerifyReadOnlyPointersVisitor(Heap* heap)
493 : VerifyPointersVisitor(heap) {}
515 VerifyReadOnlyPointersVisitor visitor(isolate->heap());
527 ReadOnlySpaceObjectIterator it(isolate->heap(), this, page);
540 // All the interior pointers should be contained in the heap.
556 VerifyCounters(isolate->heap());
561 void ReadOnlySpace::VerifyCounters(Heap* heap) const {
566 ReadOnlySpaceObjectIterator it(heap, this, page);
598 // skipped when scanning the heap.
606 heap()->incremental_marking()->marking_state()->bitmap(page)->ClearRange(
609 heap()->CreateFillerObjectAt(top_, static_cast<int>(limit_ - top_),
628 heap()->memory_allocator()->AllocateReadOnlyPage(this);
636 heap()->CreateFillerObjectAt(chunk->area_start(),
661 return heap()->PrecedeWithFiller(HeapObject::FromAddress(current_top),
717 DCHECK(heap()->incremental_marking()->marking_state()->IsBlack(heap_obj));
735 PrintIsolate(heap()->isolate(), "Shrinking page %p: end %p -> %p\n",
740 heap()->CreateFillerObjectAt(
744 heap()->memory_allocator()->PartialFreeMemory(
757 heap()->CreateFillerObjectAt(top_, static_cast<int>(limit_ - top_),
771 Heap* heap, PointerCompressedReadOnlyArtifacts* artifacts)
772 : SharedReadOnlySpace(heap) {
789 Heap* heap, std::vector<ReadOnlyPage*>&& new_pages,
793 : SharedReadOnlySpace(heap) {
804 SharedReadOnlySpace::SharedReadOnlySpace(Heap* heap,
806 : SharedReadOnlySpace(heap) {