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 2109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 unsigned int maximum_size_scavenges_; | 2120 unsigned int maximum_size_scavenges_; |
2121 | 2121 |
2122 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. | 2122 // TODO(hpayer): Allocation site pretenuring may make this method obsolete. |
2123 // Re-visit incremental marking heuristics. | 2123 // Re-visit incremental marking heuristics. |
2124 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } | 2124 bool IsHighSurvivalRate() { return high_survival_rate_period_length_ > 0; } |
2125 | 2125 |
2126 void ConfigureInitialOldGenerationSize(); | 2126 void ConfigureInitialOldGenerationSize(); |
2127 | 2127 |
2128 void SelectScavengingVisitorsTable(); | 2128 void SelectScavengingVisitorsTable(); |
2129 | 2129 |
2130 void ReduceNewSpaceSize(GCIdleTimeAction action); | 2130 bool HasLowAllocationRate(size_t allocaion_rate); |
| 2131 |
| 2132 void ReduceNewSpaceSize(size_t allocaion_rate); |
2131 | 2133 |
2132 bool TryFinalizeIdleIncrementalMarking( | 2134 bool TryFinalizeIdleIncrementalMarking( |
2133 double idle_time_in_ms, size_t size_of_objects, | 2135 double idle_time_in_ms, size_t size_of_objects, |
2134 size_t mark_compact_speed_in_bytes_per_ms); | 2136 size_t mark_compact_speed_in_bytes_per_ms); |
2135 | 2137 |
2136 GCIdleTimeHandler::HeapState ComputeHeapState(bool reduce_memory); | 2138 GCIdleTimeHandler::HeapState ComputeHeapState(bool reduce_memory); |
2137 | 2139 |
2138 bool PerformIdleTimeAction(GCIdleTimeAction action, | 2140 bool PerformIdleTimeAction(GCIdleTimeAction action, |
2139 GCIdleTimeHandler::HeapState heap_state, | 2141 GCIdleTimeHandler::HeapState heap_state, |
2140 double deadline_in_ms, | 2142 double deadline_in_ms, |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2694 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2696 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2695 | 2697 |
2696 private: | 2698 private: |
2697 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2699 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2698 }; | 2700 }; |
2699 #endif // DEBUG | 2701 #endif // DEBUG |
2700 } | 2702 } |
2701 } // namespace v8::internal | 2703 } // namespace v8::internal |
2702 | 2704 |
2703 #endif // V8_HEAP_HEAP_H_ | 2705 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |