Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 603c294749b151b6dfe311e8171b7f24d326e38f..6d3ceff7cb27567d1710c4e5c7b73553b6fb030b 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -4581,9 +4581,10 @@ void SlotsBuffer::VerifySlots(Heap* heap, SlotsBuffer* buffer) { |
if (!IsTypedSlot(slot)) { |
Object* object = *slot; |
if (object->IsHeapObject()) { |
+ HeapObject* heap_object = HeapObject::cast(object); |
CHECK(!heap->InNewSpace(object)); |
- CHECK(heap->mark_compact_collector()->IsSlotInLiveObject( |
- reinterpret_cast<Address>(slot))); |
+ heap->mark_compact_collector()->VerifyIsSlotInLiveObject( |
+ reinterpret_cast<Address>(slot), heap_object); |
} |
} else { |
++slot_idx; |