Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index c9503d3e4d3d0a7114aa591a755188185101b592..60029acf8969f98d15d82fb36023229e61c966ec 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -323,7 +323,7 @@ class PromotionQueue { |
} |
Page* GetHeadPage() { |
- return Page::FromAllocationTop(reinterpret_cast<Address>(rear_)); |
+ return Page::FromAllocationAreaAddress(reinterpret_cast<Address>(rear_)); |
} |
void SetNewLimit(Address limit) { |
@@ -331,7 +331,7 @@ class PromotionQueue { |
if (emergency_stack_) return; |
// If the limit is not on the same page, we can ignore it. |
- if (Page::FromAllocationTop(limit) != GetHeadPage()) return; |
+ if (Page::FromAllocationAreaAddress(limit) != GetHeadPage()) return; |
limit_ = reinterpret_cast<struct Entry*>(limit); |