| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 inline bool IsComplete() { return state() == COMPLETE; } | 58 inline bool IsComplete() { return state() == COMPLETE; } |
| 59 | 59 |
| 60 inline bool IsReadyToOverApproximateWeakClosure() const { | 60 inline bool IsReadyToOverApproximateWeakClosure() const { |
| 61 return request_type_ == OVERAPPROXIMATION && | 61 return request_type_ == OVERAPPROXIMATION && |
| 62 !weak_closure_was_overapproximated_; | 62 !weak_closure_was_overapproximated_; |
| 63 } | 63 } |
| 64 | 64 |
| 65 GCRequestType request_type() const { return request_type_; } | 65 GCRequestType request_type() const { return request_type_; } |
| 66 | 66 |
| 67 bool WorthActivating(); | 67 bool CanBeActivated(); |
| 68 | 68 |
| 69 bool ShouldActivate(); | 69 bool ShouldActivateEvenWithoutIdleNotification(); |
| 70 | 70 |
| 71 bool WasActivated(); | 71 bool WasActivated(); |
| 72 | 72 |
| 73 void Start(); | 73 void Start(); |
| 74 | 74 |
| 75 void Stop(); | 75 void Stop(); |
| 76 | 76 |
| 77 void MarkObjectGroups(); | 77 void MarkObjectGroups(); |
| 78 | 78 |
| 79 void PrepareForScavenge(); | 79 void PrepareForScavenge(); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 int weak_closure_approximation_rounds_; | 261 int weak_closure_approximation_rounds_; |
| 262 | 262 |
| 263 GCRequestType request_type_; | 263 GCRequestType request_type_; |
| 264 | 264 |
| 265 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 265 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 266 }; | 266 }; |
| 267 } | 267 } |
| 268 } // namespace v8::internal | 268 } // namespace v8::internal |
| 269 | 269 |
| 270 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 270 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |