Chromium Code Reviews| Index: src/mark-compact.cc |
| =================================================================== |
| --- src/mark-compact.cc (revision 3658) |
| +++ src/mark-compact.cc (working copy) |
| @@ -1291,6 +1291,8 @@ |
| MapIterator it; |
| HeapObject* o = it.next(); |
| for (; o != first_map_to_evacuate_; o = it.next()) { |
| + it.has_next(); |
|
Søren Thygesen Gjesse
2010/01/21 07:57:41
Please add a comment here.
|
| + ASSERT(it.has_next()); |
| Map* map = reinterpret_cast<Map*>(o); |
| ASSERT(!map->IsMarked()); |
| ASSERT(!map->IsOverflowed()); |
| @@ -1362,6 +1364,7 @@ |
| static Map* NextMap(MapIterator* it, HeapObject* last, bool live) { |
| while (true) { |
| + it->has_next(); // Need to be called for side effects. |
| ASSERT(it->has_next()); |
| HeapObject* next = it->next(); |
| if (next == last) |