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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2260 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 2260 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
2261 | 2261 |
2262 void ConfigureInitialOldGenerationSize(); | 2262 void ConfigureInitialOldGenerationSize(); |
2263 | 2263 |
2264 void ConfigureNewGenerationSize(); | 2264 void ConfigureNewGenerationSize(); |
2265 | 2265 |
2266 void SelectScavengingVisitorsTable(); | 2266 void SelectScavengingVisitorsTable(); |
2267 | 2267 |
2268 bool HasLowYoungGenerationAllocationRate(); | 2268 bool HasLowYoungGenerationAllocationRate(); |
2269 bool HasLowOldGenerationAllocationRate(); | 2269 bool HasLowOldGenerationAllocationRate(); |
| 2270 double YoungGenerationMutatorUtilization(); |
| 2271 double OldGenerationMutatorUtilization(); |
2270 | 2272 |
2271 void ReduceNewSpaceSize(); | 2273 void ReduceNewSpaceSize(); |
2272 | 2274 |
2273 bool TryFinalizeIdleIncrementalMarking( | 2275 bool TryFinalizeIdleIncrementalMarking( |
2274 double idle_time_in_ms, size_t size_of_objects, | 2276 double idle_time_in_ms, size_t size_of_objects, |
2275 size_t mark_compact_speed_in_bytes_per_ms); | 2277 size_t mark_compact_speed_in_bytes_per_ms); |
2276 | 2278 |
2277 GCIdleTimeHandler::HeapState ComputeHeapState(); | 2279 GCIdleTimeHandler::HeapState ComputeHeapState(); |
2278 | 2280 |
2279 bool PerformIdleTimeAction(GCIdleTimeAction action, | 2281 bool PerformIdleTimeAction(GCIdleTimeAction action, |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2872 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2874 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2873 | 2875 |
2874 private: | 2876 private: |
2875 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2877 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2876 }; | 2878 }; |
2877 #endif // DEBUG | 2879 #endif // DEBUG |
2878 } | 2880 } |
2879 } // namespace v8::internal | 2881 } // namespace v8::internal |
2880 | 2882 |
2881 #endif // V8_HEAP_HEAP_H_ | 2883 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |