OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_GC_IDLE_TIME_HANDLER_H_ | 5 #ifndef V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 6 #define V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
7 | 7 |
8 #include "src/globals.h" | 8 #include "src/globals.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 size_t final_incremental_mark_compact_speed_in_bytes_per_ms); | 191 size_t final_incremental_mark_compact_speed_in_bytes_per_ms); |
192 | 192 |
193 static bool ShouldDoOverApproximateWeakClosure(size_t idle_time_in_ms); | 193 static bool ShouldDoOverApproximateWeakClosure(size_t idle_time_in_ms); |
194 | 194 |
195 static bool ShouldDoScavenge( | 195 static bool ShouldDoScavenge( |
196 size_t idle_time_in_ms, size_t new_space_size, size_t used_new_space_size, | 196 size_t idle_time_in_ms, size_t new_space_size, size_t used_new_space_size, |
197 size_t scavenger_speed_in_bytes_per_ms, | 197 size_t scavenger_speed_in_bytes_per_ms, |
198 size_t new_space_allocation_throughput_in_bytes_per_ms); | 198 size_t new_space_allocation_throughput_in_bytes_per_ms); |
199 | 199 |
200 private: | 200 private: |
201 GCIdleTimeAction NothingOrDone(); | 201 GCIdleTimeAction NothingOrDone(double idle_time_in_ms); |
202 | 202 |
203 // Idle notifications with no progress. | 203 // Idle notifications with no progress. |
204 int idle_times_which_made_no_progress_; | 204 int idle_times_which_made_no_progress_; |
205 | 205 |
206 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); | 206 DISALLOW_COPY_AND_ASSIGN(GCIdleTimeHandler); |
207 }; | 207 }; |
208 | 208 |
209 } // namespace internal | 209 } // namespace internal |
210 } // namespace v8 | 210 } // namespace v8 |
211 | 211 |
212 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ | 212 #endif // V8_HEAP_GC_IDLE_TIME_HANDLER_H_ |
OLD | NEW |