| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index f592796ec59d499f1d76434da72aec795277b8d5..d92f228a2531758c18cf55eba3b61efdf2f0032e 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -522,11 +522,11 @@ class MemoryChunk {
|
| progress_bar();
|
| }
|
|
|
| - static void IncrementLiveBytesFromGC(Address address, int by) {
|
| - MemoryChunk::FromAddress(address)->IncrementLiveBytes(by);
|
| + static void IncrementLiveBytesFromGC(HeapObject* object, int by) {
|
| + MemoryChunk::FromAddress(object->address())->IncrementLiveBytes(by);
|
| }
|
|
|
| - static void IncrementLiveBytesFromMutator(Address address, int by);
|
| + static void IncrementLiveBytesFromMutator(HeapObject* object, int by);
|
|
|
| static const intptr_t kAlignment =
|
| (static_cast<uintptr_t>(1) << kPageSizeBits);
|
|
|