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_INCREMENTAL_MARKING_H_ | 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_ |
6 #define V8_HEAP_INCREMENTAL_MARKING_H_ | 6 #define V8_HEAP_INCREMENTAL_MARKING_H_ |
7 | 7 |
8 #include "src/cancelable-task.h" | 8 #include "src/cancelable-task.h" |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 | 264 |
265 void IncrementIdleMarkingDelayCounter(); | 265 void IncrementIdleMarkingDelayCounter(); |
266 | 266 |
267 void AdvanceIncrementalMarkingOnAllocation(); | 267 void AdvanceIncrementalMarkingOnAllocation(); |
268 | 268 |
269 size_t StepSizeToKeepUpWithAllocations(); | 269 size_t StepSizeToKeepUpWithAllocations(); |
270 size_t StepSizeToMakeProgress(); | 270 size_t StepSizeToMakeProgress(); |
271 | 271 |
272 Heap* heap_; | 272 Heap* heap_; |
273 | 273 |
274 State state_; | |
275 | |
276 double start_time_ms_; | 274 double start_time_ms_; |
277 size_t initial_old_generation_size_; | 275 size_t initial_old_generation_size_; |
278 size_t old_generation_allocation_counter_; | 276 size_t old_generation_allocation_counter_; |
279 size_t bytes_allocated_; | 277 size_t bytes_allocated_; |
280 size_t bytes_marked_ahead_of_schedule_; | 278 size_t bytes_marked_ahead_of_schedule_; |
281 size_t unscanned_bytes_of_large_object_; | 279 size_t unscanned_bytes_of_large_object_; |
282 | 280 |
| 281 State state_; |
| 282 |
283 int idle_marking_delay_counter_; | 283 int idle_marking_delay_counter_; |
284 int incremental_marking_finalization_rounds_; | 284 int incremental_marking_finalization_rounds_; |
285 | 285 |
286 bool is_compacting_; | 286 bool is_compacting_; |
287 bool should_hurry_; | 287 bool should_hurry_; |
288 bool was_activated_; | 288 bool was_activated_; |
289 bool black_allocation_; | 289 bool black_allocation_; |
290 bool finalize_marking_completed_; | 290 bool finalize_marking_completed_; |
291 bool trace_wrappers_toggle_; | 291 bool trace_wrappers_toggle_; |
| 292 IncrementalMarkingJob incremental_marking_job_; |
292 | 293 |
293 GCRequestType request_type_; | 294 GCRequestType request_type_; |
294 | 295 |
295 IncrementalMarkingJob incremental_marking_job_; | |
296 Observer new_generation_observer_; | 296 Observer new_generation_observer_; |
297 Observer old_generation_observer_; | 297 Observer old_generation_observer_; |
298 | 298 |
299 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 299 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
300 }; | 300 }; |
301 } // namespace internal | 301 } // namespace internal |
302 } // namespace v8 | 302 } // namespace v8 |
303 | 303 |
304 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 304 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |