diff options
Diffstat (limited to 'chromium/v8/src/heap/heap-inl.h')
-rw-r--r-- | chromium/v8/src/heap/heap-inl.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chromium/v8/src/heap/heap-inl.h b/chromium/v8/src/heap/heap-inl.h index 7c8a2f54d6b..9b998ea6af2 100644 --- a/chromium/v8/src/heap/heap-inl.h +++ b/chromium/v8/src/heap/heap-inl.h @@ -43,6 +43,7 @@ #include "src/objects/scope-info.h" #include "src/objects/slots-inl.h" #include "src/objects/struct-inl.h" +#include "src/objects/visitors-inl.h" #include "src/profiler/heap-profiler.h" #include "src/strings/string-hasher.h" #include "src/utils/ostreams.h" @@ -769,6 +770,9 @@ bool Heap::HasDirtyJSFinalizationRegistries() { return !dirty_js_finalization_registries_list().IsUndefined(isolate()); } +VerifyPointersVisitor::VerifyPointersVisitor(Heap* heap) + : ObjectVisitorWithCageBases(heap), heap_(heap) {} + AlwaysAllocateScope::AlwaysAllocateScope(Heap* heap) : heap_(heap) { heap_->always_allocate_scope_count_++; } @@ -784,12 +788,12 @@ CodeSpaceMemoryModificationScope::CodeSpaceMemoryModificationScope(Heap* heap) : heap_(heap) { if (heap_->write_protect_code_memory()) { heap_->increment_code_space_memory_modification_scope_depth(); - heap_->code_space()->SetReadAndWritable(); + heap_->code_space()->SetCodeModificationPermissions(); LargePage* page = heap_->code_lo_space()->first_page(); while (page != nullptr) { DCHECK(page->IsFlagSet(MemoryChunk::IS_EXECUTABLE)); CHECK(heap_->memory_allocator()->IsMemoryChunkExecutable(page)); - page->SetReadAndWritable(); + page->SetCodeModificationPermissions(); page = page->next_page(); } } @@ -847,7 +851,7 @@ CodePageMemoryModificationScope::CodePageMemoryModificationScope( if (scope_active_) { DCHECK(chunk_->owner()->identity() == CODE_SPACE || (chunk_->owner()->identity() == CODE_LO_SPACE)); - MemoryChunk::cast(chunk_)->SetReadAndWritable(); + MemoryChunk::cast(chunk_)->SetCodeModificationPermissions(); } } |