diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h index 176e3c4dc7..ce695b0175 100644 --- a/src/heap/spaces-inl.h +++ b/src/heap/spaces-inl.h @@ -464,8 +464,8 @@ AllocationResult NewSpace::AllocateRaw(int size_in_bytes, AllocationAlignment alignment) { if (top() < top_on_previous_step_) { // Generated code decreased the top() pointer to do folded allocations - DCHECK_EQ(Page::FromAddress(top()), - Page::FromAddress(top_on_previous_step_)); + DCHECK_EQ(Page::FromAllocationAreaAddress(top()), + Page::FromAllocationAreaAddress(top_on_previous_step_)); top_on_previous_step_ = top(); } #ifdef V8_HOST_ARCH_32_BIT