Index: src/heap/mark-compact.h |
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h |
index b4a4fe7fda2c423c6450ee513d3d127472c0b63e..77aa452f8ada50582eb1658c5dd44e3573e1d394 100644 |
--- a/src/heap/mark-compact.h |
+++ b/src/heap/mark-compact.h |
@@ -211,7 +211,7 @@ class MarkingDeque { |
DCHECK(object->IsHeapObject()); |
if (IsFull()) { |
Marking::BlackToGrey(object); |
- MemoryChunk::IncrementLiveBytesFromGC(object->address(), -object->Size()); |
+ MemoryChunk::IncrementLiveBytesFromGC(object, -object->Size()); |
SetOverflowed(); |
} else { |
array_[top_] = object; |
@@ -252,7 +252,7 @@ class MarkingDeque { |
DCHECK(Marking::IsBlack(Marking::MarkBitFrom(object))); |
if (IsFull()) { |
Marking::BlackToGrey(object); |
- MemoryChunk::IncrementLiveBytesFromGC(object->address(), -object->Size()); |
+ MemoryChunk::IncrementLiveBytesFromGC(object, -object->Size()); |
SetOverflowed(); |
} else { |
bottom_ = ((bottom_ - 1) & mask_); |