Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index e2e0e9eff3d47c89a5e7158d4dd62bf8a32fe80e..ad28c1ef442b313a16db572a44ed7e46b5d9223a 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -805,7 +805,7 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector, |
UpdateSurvivalRateTrend(start_new_space_size); |
- size_of_old_gen_at_last_old_space_gc_ = PromotedSpaceSize(); |
+ size_of_old_gen_at_last_old_space_gc_ = PromotedSpaceSizeOfObjects(); |
if (high_survival_rate_during_scavenges && |
IsStableOrIncreasingSurvivalTrend()) { |
@@ -5810,16 +5810,6 @@ void Heap::RecordStats(HeapStats* stats, bool take_snapshot) { |
} |
-intptr_t Heap::PromotedSpaceSize() { |
- return old_pointer_space_->Size() |
- + old_data_space_->Size() |
- + code_space_->Size() |
- + map_space_->Size() |
- + cell_space_->Size() |
- + lo_space_->Size(); |
-} |
- |
- |
intptr_t Heap::PromotedSpaceSizeOfObjects() { |
return old_pointer_space_->SizeOfObjects() |
+ old_data_space_->SizeOfObjects() |