| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index f19821070b7efcc2dbe9aef861b5154d86525ef5..6abd188ad408a25a4ead0dc382754d18027ddec8 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -920,8 +920,8 @@ bool MemoryAllocator::CommitExecutableMemory(base::VirtualMemory* vm,
|
| // -----------------------------------------------------------------------------
|
| // MemoryChunk implementation
|
|
|
| -void MemoryChunk::IncrementLiveBytesFromMutator(Address address, int by) {
|
| - MemoryChunk* chunk = MemoryChunk::FromAddress(address);
|
| +void MemoryChunk::IncrementLiveBytesFromMutator(HeapObject* object, int by) {
|
| + MemoryChunk* chunk = MemoryChunk::FromAddress(object->address());
|
| if (!chunk->InNewSpace() && !static_cast<Page*>(chunk)->WasSwept()) {
|
| static_cast<PagedSpace*>(chunk->owner())->IncrementUnsweptFreeBytes(-by);
|
| }
|
|
|