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 | 8 |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/heap/mark-compact.h" | 10 #include "src/heap/mark-compact.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 ForceCompletionAction force_completion_) | 32 ForceCompletionAction force_completion_) |
33 : completion_action(complete_action_), | 33 : completion_action(complete_action_), |
34 force_marking(force_marking_), | 34 force_marking(force_marking_), |
35 force_completion(force_completion_) {} | 35 force_completion(force_completion_) {} |
36 | 36 |
37 CompletionAction completion_action; | 37 CompletionAction completion_action; |
38 ForceMarkingAction force_marking; | 38 ForceMarkingAction force_marking; |
39 ForceCompletionAction force_completion; | 39 ForceCompletionAction force_completion; |
40 }; | 40 }; |
41 | 41 |
42 static StepActions NoForcedStepActions(); | 42 static StepActions IdleStepActions(); |
43 | 43 |
44 explicit IncrementalMarking(Heap* heap); | 44 explicit IncrementalMarking(Heap* heap); |
45 | 45 |
46 static void Initialize(); | 46 static void Initialize(); |
47 | 47 |
48 State state() { | 48 State state() { |
49 DCHECK(state_ == STOPPED || FLAG_incremental_marking); | 49 DCHECK(state_ == STOPPED || FLAG_incremental_marking); |
50 return state_; | 50 return state_; |
51 } | 51 } |
52 | 52 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 GCRequestType request_type_; | 263 GCRequestType request_type_; |
264 | 264 |
265 GCCallbackFlags gc_callback_flags_; | 265 GCCallbackFlags gc_callback_flags_; |
266 | 266 |
267 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 267 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
268 }; | 268 }; |
269 } | 269 } |
270 } // namespace v8::internal | 270 } // namespace v8::internal |
271 | 271 |
272 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 272 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |