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" |
11 #include "src/heap/incremental-marking-job.h" | 11 #include "src/heap/incremental-marking-job.h" |
12 #include "src/heap/mark-compact.h" | 12 #include "src/heap/mark-compact.h" |
13 #include "src/heap/spaces.h" | 13 #include "src/heap/spaces.h" |
14 #include "src/objects.h" | 14 #include "src/objects.h" |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 // Forward declarations. | 19 // Forward declarations. |
20 class MarkBit; | 20 class MarkBit; |
21 class PagedSpace; | 21 class PagedSpace; |
22 | 22 |
23 enum class StepOrigin { kV8, kTask }; | 23 enum class StepOrigin { kV8, kTask }; |
24 | 24 |
25 class IncrementalMarking { | 25 class V8_EXPORT_PRIVATE IncrementalMarking { |
26 public: | 26 public: |
27 enum State { STOPPED, SWEEPING, MARKING, COMPLETE }; | 27 enum State { STOPPED, SWEEPING, MARKING, COMPLETE }; |
28 | 28 |
29 enum CompletionAction { GC_VIA_STACK_GUARD, NO_GC_VIA_STACK_GUARD }; | 29 enum CompletionAction { GC_VIA_STACK_GUARD, NO_GC_VIA_STACK_GUARD }; |
30 | 30 |
31 enum ForceCompletionAction { FORCE_COMPLETION, DO_NOT_FORCE_COMPLETION }; | 31 enum ForceCompletionAction { FORCE_COMPLETION, DO_NOT_FORCE_COMPLETION }; |
32 | 32 |
33 enum GCRequestType { NONE, COMPLETE_MARKING, FINALIZATION }; | 33 enum GCRequestType { NONE, COMPLETE_MARKING, FINALIZATION }; |
34 | 34 |
35 explicit IncrementalMarking(Heap* heap); | 35 explicit IncrementalMarking(Heap* heap); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 IncrementalMarkingJob incremental_marking_job_; | 305 IncrementalMarkingJob incremental_marking_job_; |
306 Observer new_generation_observer_; | 306 Observer new_generation_observer_; |
307 Observer old_generation_observer_; | 307 Observer old_generation_observer_; |
308 | 308 |
309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 309 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
310 }; | 310 }; |
311 } // namespace internal | 311 } // namespace internal |
312 } // namespace v8 | 312 } // namespace v8 |
313 | 313 |
314 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 314 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |