| 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/heap.h" | 10 #include "src/heap/heap.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 GCRequestType request_type() const { return request_type_; } | 67 GCRequestType request_type() const { return request_type_; } |
| 68 | 68 |
| 69 void reset_request_type() { request_type_ = NONE; } | 69 void reset_request_type() { request_type_ = NONE; } |
| 70 | 70 |
| 71 bool CanBeActivated(); | 71 bool CanBeActivated(); |
| 72 | 72 |
| 73 bool ShouldActivateEvenWithoutIdleNotification(); | 73 bool ShouldActivateEvenWithoutIdleNotification(); |
| 74 | 74 |
| 75 bool WasActivated(); | 75 bool WasActivated(); |
| 76 | 76 |
| 77 void Start(const char* reason = nullptr); | 77 void Start(GarbageCollectionReason gc_reason); |
| 78 | 78 |
| 79 void FinalizeIncrementally(); | 79 void FinalizeIncrementally(); |
| 80 | 80 |
| 81 void UpdateMarkingDequeAfterScavenge(); | 81 void UpdateMarkingDequeAfterScavenge(); |
| 82 | 82 |
| 83 void Hurry(); | 83 void Hurry(); |
| 84 | 84 |
| 85 void Finalize(); | 85 void Finalize(); |
| 86 | 86 |
| 87 void Stop(); | 87 void Stop(); |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 GCRequestType request_type_; | 309 GCRequestType request_type_; |
| 310 | 310 |
| 311 IncrementalMarkingJob incremental_marking_job_; | 311 IncrementalMarkingJob incremental_marking_job_; |
| 312 | 312 |
| 313 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 313 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 314 }; | 314 }; |
| 315 } // namespace internal | 315 } // namespace internal |
| 316 } // namespace v8 | 316 } // namespace v8 |
| 317 | 317 |
| 318 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 318 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |