| Index: src/heap/spaces.h
|
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h
|
| index fd7c475b4e746b6f54eaec1698ec50366e779fb5..5103cbf11ef5c5d27836200c0feac34bc7ecbe48 100644
|
| --- a/src/heap/spaces.h
|
| +++ b/src/heap/spaces.h
|
| @@ -367,8 +367,7 @@ class MemoryChunk {
|
|
|
| static const int kAllocatableMemory = kPageSize - kObjectStartOffset;
|
|
|
| - static inline void IncrementLiveBytesFromMutator(HeapObject* object, int by);
|
| - static inline void IncrementLiveBytesFromGC(HeapObject* object, int by);
|
| + static inline void IncrementLiveBytes(HeapObject* object, int by);
|
|
|
| // Only works if the pointer is in the first kPageSize of the MemoryChunk.
|
| static MemoryChunk* FromAddress(Address a) {
|
| @@ -2034,7 +2033,9 @@ class PagedSpace : public Space {
|
|
|
| void MarkAllocationInfoBlack();
|
|
|
| - void Allocate(int bytes) { accounting_stats_.AllocateBytes(bytes); }
|
| + void AccountAllocatedBytes(size_t bytes) {
|
| + accounting_stats_.AllocateBytes(bytes);
|
| + }
|
|
|
| void IncreaseCapacity(size_t bytes);
|
|
|
|
|