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/incremental-marking-job.h" | 10 #include "src/heap/incremental-marking-job.h" |
11 #include "src/objects.h" | 11 #include "src/objects.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 // Forward declarations. | 16 // Forward declarations. |
17 class MarkBit; | 17 class MarkBit; |
18 class PagedSpace; | 18 class PagedSpace; |
| 19 class InlineAllocationObserver; |
19 | 20 |
20 class IncrementalMarking { | 21 class IncrementalMarking { |
21 public: | 22 public: |
22 enum State { STOPPED, SWEEPING, MARKING, COMPLETE }; | 23 enum State { STOPPED, SWEEPING, MARKING, COMPLETE }; |
23 | 24 |
24 enum CompletionAction { GC_VIA_STACK_GUARD, NO_GC_VIA_STACK_GUARD }; | 25 enum CompletionAction { GC_VIA_STACK_GUARD, NO_GC_VIA_STACK_GUARD }; |
25 | 26 |
26 enum ForceMarkingAction { FORCE_MARKING, DO_NOT_FORCE_MARKING }; | 27 enum ForceMarkingAction { FORCE_MARKING, DO_NOT_FORCE_MARKING }; |
27 | 28 |
28 enum ForceCompletionAction { FORCE_COMPLETION, DO_NOT_FORCE_COMPLETION }; | 29 enum ForceCompletionAction { FORCE_COMPLETION, DO_NOT_FORCE_COMPLETION }; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 GCRequestType request_type_; | 274 GCRequestType request_type_; |
274 | 275 |
275 IncrementalMarkingJob incremental_marking_job_; | 276 IncrementalMarkingJob incremental_marking_job_; |
276 | 277 |
277 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 278 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
278 }; | 279 }; |
279 } // namespace internal | 280 } // namespace internal |
280 } // namespace v8 | 281 } // namespace v8 |
281 | 282 |
282 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 283 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |