Index: src/heap/mark-compact-inl.h |
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h |
index 1ac9a5973a36ad4b5ddb2ce607e0ec8a264aa1b8..de8df3d77acdfe94c83b4cb98796a327d2024f9c 100644 |
--- a/src/heap/mark-compact-inl.h |
+++ b/src/heap/mark-compact-inl.h |
@@ -33,7 +33,7 @@ void MarkCompactCollector::MarkObject(HeapObject* obj, MarkBit mark_bit) { |
DCHECK(Marking::MarkBitFrom(obj) == mark_bit); |
if (Marking::IsWhite(mark_bit)) { |
Marking::WhiteToBlack(mark_bit); |
- MemoryChunk::IncrementLiveBytesFromGC(obj->address(), obj->Size()); |
+ MemoryChunk::IncrementLiveBytesFromGC(obj, obj->Size()); |
DCHECK(obj->GetIsolate()->heap()->Contains(obj)); |
marking_deque_.PushBlack(obj); |
} |
@@ -44,7 +44,7 @@ void MarkCompactCollector::SetMark(HeapObject* obj, MarkBit mark_bit) { |
DCHECK(Marking::IsWhite(mark_bit)); |
DCHECK(Marking::MarkBitFrom(obj) == mark_bit); |
Marking::WhiteToBlack(mark_bit); |
- MemoryChunk::IncrementLiveBytesFromGC(obj->address(), obj->Size()); |
+ MemoryChunk::IncrementLiveBytesFromGC(obj, obj->Size()); |
} |