Index: src/heap/spaces-inl.h |
diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h |
index 8fbeb26c57b10840dde39e1772835d4ae4755277..1567a8790d26ce5d0c88bd86847299cca5985fdf 100644 |
--- a/src/heap/spaces-inl.h |
+++ b/src/heap/spaces-inl.h |
@@ -221,7 +221,7 @@ void Page::InitializeFreeListCategories() { |
} |
} |
-void MemoryChunk::IncrementLiveBytesFromGC(HeapObject* object, int by) { |
+void MemoryChunk::IncrementLiveBytes(HeapObject* object, int by) { |
MemoryChunk::FromAddress(object->address())->IncrementLiveBytes(by); |
} |
@@ -244,14 +244,6 @@ void MemoryChunk::IncrementLiveBytes(int by) { |
DCHECK_LE(static_cast<size_t>(live_byte_count_), size_); |
} |
-void MemoryChunk::IncrementLiveBytesFromMutator(HeapObject* object, int by) { |
- MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); |
- if (!chunk->InNewSpace() && !static_cast<Page*>(chunk)->SweepingDone()) { |
- static_cast<PagedSpace*>(chunk->owner())->Allocate(by); |
- } |
- chunk->IncrementLiveBytes(by); |
-} |
- |
bool PagedSpace::Contains(Address addr) { |
Page* p = Page::FromAddress(addr); |
if (!Page::IsValid(p)) return false; |
@@ -439,7 +431,7 @@ AllocationResult PagedSpace::AllocateRawUnaligned( |
if (object != NULL) { |
if (heap()->incremental_marking()->black_allocation()) { |
Marking::MarkBlack(ObjectMarking::MarkBitFrom(object)); |
- MemoryChunk::IncrementLiveBytesFromGC(object, size_in_bytes); |
+ MemoryChunk::IncrementLiveBytes(object, size_in_bytes); |
} |
} |
} |