Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 059e4038798354efb7a05c23252f0a15d69b50b7..8075d2837e3f22d3d1f17aac79d5cda85bb1d93a 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -5936,14 +5936,14 @@ HeapObject* HeapIterator::NextObject() { |
// No iterator means we are done. |
if (object_iterator_ == nullptr) return nullptr; |
- if (HeapObject* obj = object_iterator_->next_object()) { |
+ if (HeapObject* obj = object_iterator_->Next()) { |
// If the current iterator has more objects we are fine. |
return obj; |
} else { |
// Go though the spaces looking for one that has objects. |
while (space_iterator_->has_next()) { |
object_iterator_ = space_iterator_->next(); |
- if (HeapObject* obj = object_iterator_->next_object()) { |
+ if (HeapObject* obj = object_iterator_->Next()) { |
return obj; |
} |
} |