| 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/execution.h" | 8 #include "src/execution.h" |
| 9 #include "src/heap/mark-compact.h" | 9 #include "src/heap/mark-compact.h" |
| 10 #include "src/objects.h" | 10 #include "src/objects.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 } | 74 } |
| 75 | 75 |
| 76 GCRequestType request_type() const { return request_type_; } | 76 GCRequestType request_type() const { return request_type_; } |
| 77 | 77 |
| 78 bool CanBeActivated(); | 78 bool CanBeActivated(); |
| 79 | 79 |
| 80 bool ShouldActivateEvenWithoutIdleNotification(); | 80 bool ShouldActivateEvenWithoutIdleNotification(); |
| 81 | 81 |
| 82 bool WasActivated(); | 82 bool WasActivated(); |
| 83 | 83 |
| 84 void Start(int flags, | 84 void Start(const char* reason = nullptr); |
| 85 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags, | |
| 86 const char* reason = nullptr); | |
| 87 | 85 |
| 88 void MarkObjectGroups(); | 86 void MarkObjectGroups(); |
| 89 | 87 |
| 90 void UpdateMarkingDequeAfterScavenge(); | 88 void UpdateMarkingDequeAfterScavenge(); |
| 91 | 89 |
| 92 void Hurry(); | 90 void Hurry(); |
| 93 | 91 |
| 94 void Finalize(); | 92 void Finalize(); |
| 95 | 93 |
| 96 void Stop(); | 94 void Stop(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 } | 190 } |
| 193 | 191 |
| 194 void ClearIdleMarkingDelayCounter(); | 192 void ClearIdleMarkingDelayCounter(); |
| 195 | 193 |
| 196 bool IsIdleMarkingDelayCounterLimitReached(); | 194 bool IsIdleMarkingDelayCounterLimitReached(); |
| 197 | 195 |
| 198 INLINE(static void MarkObject(Heap* heap, HeapObject* object)); | 196 INLINE(static void MarkObject(Heap* heap, HeapObject* object)); |
| 199 | 197 |
| 200 Heap* heap() const { return heap_; } | 198 Heap* heap() const { return heap_; } |
| 201 | 199 |
| 202 GCCallbackFlags CallbackFlags() const { return gc_callback_flags_; } | |
| 203 | |
| 204 private: | 200 private: |
| 205 int64_t SpaceLeftInOldSpace(); | 201 int64_t SpaceLeftInOldSpace(); |
| 206 | 202 |
| 207 void SpeedUp(); | 203 void SpeedUp(); |
| 208 | 204 |
| 209 void ResetStepCounters(); | 205 void ResetStepCounters(); |
| 210 | 206 |
| 211 void StartMarking(); | 207 void StartMarking(); |
| 212 | 208 |
| 213 void ActivateIncrementalWriteBarrier(PagedSpace* space); | 209 void ActivateIncrementalWriteBarrier(PagedSpace* space); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 int unscanned_bytes_of_large_object_; | 248 int unscanned_bytes_of_large_object_; |
| 253 | 249 |
| 254 bool was_activated_; | 250 bool was_activated_; |
| 255 | 251 |
| 256 bool weak_closure_was_overapproximated_; | 252 bool weak_closure_was_overapproximated_; |
| 257 | 253 |
| 258 int weak_closure_approximation_rounds_; | 254 int weak_closure_approximation_rounds_; |
| 259 | 255 |
| 260 GCRequestType request_type_; | 256 GCRequestType request_type_; |
| 261 | 257 |
| 262 GCCallbackFlags gc_callback_flags_; | |
| 263 | |
| 264 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 258 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 265 }; | 259 }; |
| 266 } | 260 } |
| 267 } // namespace v8::internal | 261 } // namespace v8::internal |
| 268 | 262 |
| 269 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 263 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |