Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index e31d3d6859b4630677794d4062c0053b67eb4bb5..252e7671e6e4e1f94e6e2b4eb3d60c66a123df13 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -449,6 +449,14 @@ void Heap::CopyBlock(Address dst, Address src, int byte_size) { |
static_cast<size_t>(byte_size / kPointerSize)); |
} |
+void Heap::UpdateNewSpaceAllocationCounter() { |
+ new_space_allocation_counter_ = NewSpaceAllocationCounter(); |
+} |
+ |
+size_t Heap::NewSpaceAllocationCounter() { |
+ return new_space_allocation_counter_ + new_space()->AllocatedSinceLastGC(); |
+} |
+ |
template <Heap::FindMementoMode mode> |
AllocationMemento* Heap::FindAllocationMemento(HeapObject* object) { |
// Check if there is potentially a memento behind the object. If |