Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 4855ac08aeb8e1a56b23df4e527edd97208e977e..97e93a7307d395a350c0d57ad4ccebbf336639d7 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -3969,6 +3969,18 @@ void Heap::CreateFillerObjectAt(Address addr, int size) { |
} |
+void Heap::AdjustLiveBytes(Address address, int by, InvocationMode mode) { |
+ if (incremental_marking()->IsMarking() && |
+ Marking::IsBlack(Marking::MarkBitFrom(address))) { |
+ if (mode == FROM_GC) { |
+ MemoryChunk::IncrementLiveBytesFromGC(address, by); |
+ } else { |
+ MemoryChunk::IncrementLiveBytesFromMutator(address, by); |
+ } |
+ } |
+} |
+ |
+ |
MaybeObject* Heap::AllocateExternalArray(int length, |
ExternalArrayType array_type, |
void* external_pointer, |