Index: src/heap/array-buffer-tracker.cc |
diff --git a/src/heap/array-buffer-tracker.cc b/src/heap/array-buffer-tracker.cc |
index 62b848ef70c5339bf6bd3be7585b9290a4b022fb..def84572b681efc0cc35f2d1f1f053ddd89aa3da 100644 |
--- a/src/heap/array-buffer-tracker.cc |
+++ b/src/heap/array-buffer-tracker.cc |
@@ -78,8 +78,8 @@ void LocalArrayBufferTracker::Process(Callback callback) { |
void ArrayBufferTracker::FreeDeadInNewSpace(Heap* heap) { |
DCHECK_EQ(heap->gc_state(), Heap::HeapState::SCAVENGE); |
- for (Page* page : NewSpacePageRange(heap->new_space()->FromSpaceStart(), |
- heap->new_space()->FromSpaceEnd())) { |
+ for (Page* page : PageRange(heap->new_space()->FromSpaceStart(), |
+ heap->new_space()->FromSpaceEnd())) { |
bool empty = ProcessBuffers(page, kUpdateForwardedRemoveOthers); |
CHECK(empty); |
} |