Index: src/heap/store-buffer.cc |
diff --git a/src/heap/store-buffer.cc b/src/heap/store-buffer.cc |
index b48e1a4049369f00a45fffa56323e35bf4de452e..48e98a3decf9273ee95d387de2d1d2067c6011f3 100644 |
--- a/src/heap/store-buffer.cc |
+++ b/src/heap/store-buffer.cc |
@@ -486,10 +486,11 @@ void StoreBuffer::IteratePointersToNewSpace(ObjectSlotCallback slot_callback, |
heap_object = iterator.Next()) { |
// We skip free space objects. |
if (!heap_object->IsFiller()) { |
+ DCHECK(heap_object->IsMap()); |
FindPointersToNewSpaceInRegion( |
- heap_object->address() + HeapObject::kHeaderSize, |
- heap_object->address() + heap_object->Size(), slot_callback, |
- clear_maps); |
+ heap_object->address() + Map::kPointerFieldsBeginOffset, |
+ heap_object->address() + Map::kPointerFieldsEndOffset, |
+ slot_callback, clear_maps); |
} |
} |
} else { |