diff options
Diffstat (limited to 'deps/v8/src/heap/spaces-inl.h')
-rw-r--r-- | deps/v8/src/heap/spaces-inl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/heap/spaces-inl.h b/deps/v8/src/heap/spaces-inl.h index 2079a80a0b..62d1b620c0 100644 --- a/deps/v8/src/heap/spaces-inl.h +++ b/deps/v8/src/heap/spaces-inl.h @@ -208,8 +208,9 @@ Page* Page::Initialize(Heap* heap, MemoryChunk* chunk, Executability executable, } Page* Page::ConvertNewToOld(Page* old_page) { - OldSpace* old_space = old_page->heap()->old_space(); + DCHECK(!old_page->is_anchor()); DCHECK(old_page->InNewSpace()); + OldSpace* old_space = old_page->heap()->old_space(); old_page->set_owner(old_space); old_page->SetFlags(0, ~0); old_space->AccountCommitted(old_page->size()); |