| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool ShouldActivate(); | 60 bool ShouldActivate(); |
| 61 | 61 |
| 62 bool WasActivated(); | 62 bool WasActivated(); |
| 63 | 63 |
| 64 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; | 64 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; |
| 65 | 65 |
| 66 void Start(CompactionFlag flag = ALLOW_COMPACTION); | 66 void Start(CompactionFlag flag = ALLOW_COMPACTION); |
| 67 | 67 |
| 68 void Stop(); | 68 void Stop(); |
| 69 | 69 |
| 70 void MarkObjectGroups(); |
| 71 |
| 70 void PrepareForScavenge(); | 72 void PrepareForScavenge(); |
| 71 | 73 |
| 72 void UpdateMarkingDequeAfterScavenge(); | 74 void UpdateMarkingDequeAfterScavenge(); |
| 73 | 75 |
| 74 void Hurry(); | 76 void Hurry(); |
| 75 | 77 |
| 76 void Finalize(); | 78 void Finalize(); |
| 77 | 79 |
| 78 void Abort(); | 80 void Abort(); |
| 79 | 81 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void LeaveNoMarkingScope() { no_marking_scope_depth_--; } | 184 void LeaveNoMarkingScope() { no_marking_scope_depth_--; } |
| 183 | 185 |
| 184 void NotifyIncompleteScanOfObject(int unscanned_bytes) { | 186 void NotifyIncompleteScanOfObject(int unscanned_bytes) { |
| 185 unscanned_bytes_of_large_object_ = unscanned_bytes; | 187 unscanned_bytes_of_large_object_ = unscanned_bytes; |
| 186 } | 188 } |
| 187 | 189 |
| 188 void ClearIdleMarkingDelayCounter(); | 190 void ClearIdleMarkingDelayCounter(); |
| 189 | 191 |
| 190 bool IsIdleMarkingDelayCounterLimitReached(); | 192 bool IsIdleMarkingDelayCounterLimitReached(); |
| 191 | 193 |
| 192 INLINE(static void MarkObject(Heap* heap, Object* object)); | 194 INLINE(static void MarkObject(Heap* heap, HeapObject* object)); |
| 193 | 195 |
| 194 Heap* heap() const { return heap_; } | 196 Heap* heap() const { return heap_; } |
| 195 | 197 |
| 196 private: | 198 private: |
| 197 int64_t SpaceLeftInOldSpace(); | 199 int64_t SpaceLeftInOldSpace(); |
| 198 | 200 |
| 199 void SpeedUp(); | 201 void SpeedUp(); |
| 200 | 202 |
| 201 void ResetStepCounters(); | 203 void ResetStepCounters(); |
| 202 | 204 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 bool weak_closure_was_overapproximated_; | 250 bool weak_closure_was_overapproximated_; |
| 249 | 251 |
| 250 GCRequestType request_type_; | 252 GCRequestType request_type_; |
| 251 | 253 |
| 252 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 254 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 253 }; | 255 }; |
| 254 } | 256 } |
| 255 } // namespace v8::internal | 257 } // namespace v8::internal |
| 256 | 258 |
| 257 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 259 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
| OLD | NEW |