diff --git a/src/spaces-inl.h b/src/spaces-inl.h index 8a576a83f6..aeac570f4e 100644 --- a/src/spaces-inl.h +++ b/src/spaces-inl.h @@ -164,7 +164,7 @@ Page* Page::Initialize(Heap* heap, Executability executable, PagedSpace* owner) { Page* page = reinterpret_cast(chunk); - ASSERT(chunk->size() <= static_cast(kPageSize)); + ASSERT(page->area_size() <= kNonCodeObjectAreaSize); ASSERT(chunk->owner() == owner); owner->IncreaseCapacity(page->area_size()); owner->Free(page->area_start(), page->area_size());