| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 bool CanBeActivated(); | 79 bool CanBeActivated(); |
| 80 | 80 |
| 81 bool ShouldActivateEvenWithoutIdleNotification(); | 81 bool ShouldActivateEvenWithoutIdleNotification(); |
| 82 | 82 |
| 83 bool WasActivated(); | 83 bool WasActivated(); |
| 84 | 84 |
| 85 void Start(int mark_compact_flags, | 85 void Start(int mark_compact_flags, |
| 86 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags, | 86 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags, |
| 87 const char* reason = nullptr); | 87 const char* reason = nullptr); |
| 88 | 88 |
| 89 void Stop(); | |
| 90 | |
| 91 void MarkObjectGroups(); | 89 void MarkObjectGroups(); |
| 92 | 90 |
| 93 void UpdateMarkingDequeAfterScavenge(); | 91 void UpdateMarkingDequeAfterScavenge(); |
| 94 | 92 |
| 95 void Hurry(); | 93 void Hurry(); |
| 96 | 94 |
| 97 void Finalize(); | 95 void Finalize(); |
| 98 | 96 |
| 99 void Abort(); | 97 void Stop(); |
| 100 | 98 |
| 101 void OverApproximateWeakClosure(CompletionAction action); | 99 void OverApproximateWeakClosure(CompletionAction action); |
| 102 | 100 |
| 103 void MarkingComplete(CompletionAction action); | 101 void MarkingComplete(CompletionAction action); |
| 104 | 102 |
| 105 void Epilogue(); | 103 void Epilogue(); |
| 106 | 104 |
| 107 // It's hard to know how much work the incremental marker should do to make | 105 // It's hard to know how much work the incremental marker should do to make |
| 108 // progress in the face of the mutator creating new work for it. We start | 106 // progress in the face of the mutator creating new work for it. We start |
| 109 // of at a moderate rate of work and gradually increase the speed of the | 107 // of at a moderate rate of work and gradually increase the speed of the |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 GCRequestType request_type_; | 261 GCRequestType request_type_; |
| 264 | 262 |
| 265 GCCallbackFlags gc_callback_flags_; | 263 GCCallbackFlags gc_callback_flags_; |
| 266 | 264 |
| 267 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 265 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 268 }; | 266 }; |
| 269 } | 267 } |
| 270 } // namespace v8::internal | 268 } // namespace v8::internal |
| 271 | 269 |
| 272 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 270 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |