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 26 matching lines...) Expand all Loading... |
37 inline bool IsStopped() { return state() == STOPPED; } | 37 inline bool IsStopped() { return state() == STOPPED; } |
38 | 38 |
39 INLINE(bool IsMarking()) { return state() >= MARKING; } | 39 INLINE(bool IsMarking()) { return state() >= MARKING; } |
40 | 40 |
41 inline bool IsMarkingIncomplete() { return state() == MARKING; } | 41 inline bool IsMarkingIncomplete() { return state() == MARKING; } |
42 | 42 |
43 inline bool IsComplete() { return state() == COMPLETE; } | 43 inline bool IsComplete() { return state() == COMPLETE; } |
44 | 44 |
45 bool WorthActivating(); | 45 bool WorthActivating(); |
46 | 46 |
| 47 bool ShouldActivate(); |
| 48 |
47 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; | 49 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; |
48 | 50 |
49 void Start(CompactionFlag flag = ALLOW_COMPACTION); | 51 void Start(CompactionFlag flag = ALLOW_COMPACTION); |
50 | 52 |
51 void Stop(); | 53 void Stop(); |
52 | 54 |
53 void PrepareForScavenge(); | 55 void PrepareForScavenge(); |
54 | 56 |
55 void UpdateMarkingDequeAfterScavenge(); | 57 void UpdateMarkingDequeAfterScavenge(); |
56 | 58 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 int no_marking_scope_depth_; | 217 int no_marking_scope_depth_; |
216 | 218 |
217 int unscanned_bytes_of_large_object_; | 219 int unscanned_bytes_of_large_object_; |
218 | 220 |
219 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 221 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
220 }; | 222 }; |
221 } | 223 } |
222 } // namespace v8::internal | 224 } // namespace v8::internal |
223 | 225 |
224 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 226 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |