OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "allocation.h" | 10 #include "allocation.h" |
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2018 ScratchpadSlotMode mode); | 2018 ScratchpadSlotMode mode); |
2019 | 2019 |
2020 void UpdateSurvivalRateTrend(int start_new_space_size); | 2020 void UpdateSurvivalRateTrend(int start_new_space_size); |
2021 | 2021 |
2022 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; | 2022 enum SurvivalRateTrend { INCREASING, STABLE, DECREASING, FLUCTUATING }; |
2023 | 2023 |
2024 static const int kYoungSurvivalRateHighThreshold = 90; | 2024 static const int kYoungSurvivalRateHighThreshold = 90; |
2025 static const int kYoungSurvivalRateLowThreshold = 10; | 2025 static const int kYoungSurvivalRateLowThreshold = 10; |
2026 static const int kYoungSurvivalRateAllowedDeviation = 15; | 2026 static const int kYoungSurvivalRateAllowedDeviation = 15; |
2027 | 2027 |
2028 static const int kOldSurvivalRateLowThreshold = 20; | 2028 static const int kOldSurvivalRateLowThreshold = 10; |
2029 | 2029 |
2030 int young_survivors_after_last_gc_; | 2030 int young_survivors_after_last_gc_; |
2031 int high_survival_rate_period_length_; | 2031 int high_survival_rate_period_length_; |
2032 int low_survival_rate_period_length_; | 2032 int low_survival_rate_period_length_; |
2033 double survival_rate_; | 2033 double survival_rate_; |
2034 SurvivalRateTrend previous_survival_rate_trend_; | 2034 SurvivalRateTrend previous_survival_rate_trend_; |
2035 SurvivalRateTrend survival_rate_trend_; | 2035 SurvivalRateTrend survival_rate_trend_; |
2036 | 2036 |
2037 void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) { | 2037 void set_survival_rate_trend(SurvivalRateTrend survival_rate_trend) { |
2038 ASSERT(survival_rate_trend != FLUCTUATING); | 2038 ASSERT(survival_rate_trend != FLUCTUATING); |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2818 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2819 | 2819 |
2820 private: | 2820 private: |
2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2821 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2822 }; | 2822 }; |
2823 #endif // DEBUG | 2823 #endif // DEBUG |
2824 | 2824 |
2825 } } // namespace v8::internal | 2825 } } // namespace v8::internal |
2826 | 2826 |
2827 #endif // V8_HEAP_H_ | 2827 #endif // V8_HEAP_H_ |
OLD | NEW |