| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void PrepareForScavenge(); | 72 void PrepareForScavenge(); |
| 73 | 73 |
| 74 void UpdateMarkingDequeAfterScavenge(); | 74 void UpdateMarkingDequeAfterScavenge(); |
| 75 | 75 |
| 76 void Hurry(); | 76 void Hurry(); |
| 77 | 77 |
| 78 void Finalize(); | 78 void Finalize(); |
| 79 | 79 |
| 80 void Abort(); | 80 void Abort(); |
| 81 | 81 |
| 82 void OverApproximateWeakClosure(); | 82 void OverApproximateWeakClosure(CompletionAction action); |
| 83 | 83 |
| 84 void MarkingComplete(CompletionAction action); | 84 void MarkingComplete(CompletionAction action); |
| 85 | 85 |
| 86 void Epilogue(); | 86 void Epilogue(); |
| 87 | 87 |
| 88 // It's hard to know how much work the incremental marker should do to make | 88 // It's hard to know how much work the incremental marker should do to make |
| 89 // progress in the face of the mutator creating new work for it. We start | 89 // progress in the face of the mutator creating new work for it. We start |
| 90 // of at a moderate rate of work and gradually increase the speed of the | 90 // of at a moderate rate of work and gradually increase the speed of the |
| 91 // incremental marker until it completes. | 91 // incremental marker until it completes. |
| 92 // Do some marking every time this much memory has been allocated or that many | 92 // Do some marking every time this much memory has been allocated or that many |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 bool weak_closure_was_overapproximated_; | 250 bool weak_closure_was_overapproximated_; |
| 251 | 251 |
| 252 GCRequestType request_type_; | 252 GCRequestType request_type_; |
| 253 | 253 |
| 254 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 254 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 255 }; | 255 }; |
| 256 } | 256 } |
| 257 } // namespace v8::internal | 257 } // namespace v8::internal |
| 258 | 258 |
| 259 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 259 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |