Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 9a1df48698cd4e7e84b5e424df26e562a73a95ed..76bf8c331f514588b418baf7d2f9d7ebcb17bc9b 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -4709,8 +4709,8 @@ void Heap::Verify() { |
void Heap::ZapFromSpace() { |
if (!new_space_->IsFromSpaceCommitted()) return; |
- for (Page* page : NewSpacePageRange(new_space_->FromSpaceStart(), |
- new_space_->FromSpaceEnd())) { |
+ for (Page* page : |
+ PageRange(new_space_->FromSpaceStart(), new_space_->FromSpaceEnd())) { |
for (Address cursor = page->area_start(), limit = page->area_end(); |
cursor < limit; cursor += kPointerSize) { |
Memory::Address_at(cursor) = kFromSpaceZapValue; |