Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 6d3ceff7cb27567d1710c4e5c7b73553b6fb030b..526718e1ee72475e2225e114d45f3adcafa2f991 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1752,7 +1752,7 @@ static void DiscoverGreyObjectsWithIterator(Heap* heap, |
MarkBit markbit = Marking::MarkBitFrom(object); |
if ((object->map() != filler_map) && Marking::IsGrey(markbit)) { |
Marking::GreyToBlack(markbit); |
- MemoryChunk::IncrementLiveBytesFromGC(object->address(), object->Size()); |
+ MemoryChunk::IncrementLiveBytesFromGC(object, object->Size()); |
marking_deque->PushBlack(object); |
if (marking_deque->IsFull()) return; |
} |
@@ -1797,7 +1797,7 @@ static void DiscoverGreyObjectsOnPage(MarkingDeque* marking_deque, |
Marking::GreyToBlack(markbit); |
Address addr = cell_base + offset * kPointerSize; |
HeapObject* object = HeapObject::FromAddress(addr); |
- MemoryChunk::IncrementLiveBytesFromGC(object->address(), object->Size()); |
+ MemoryChunk::IncrementLiveBytesFromGC(object, object->Size()); |
marking_deque->PushBlack(object); |
if (marking_deque->IsFull()) return; |
offset += 2; |