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 23 matching lines...) Expand all Loading... |
34 DCHECK(state_ == STOPPED || FLAG_incremental_marking); | 34 DCHECK(state_ == STOPPED || FLAG_incremental_marking); |
35 return state_; | 35 return state_; |
36 } | 36 } |
37 | 37 |
38 bool should_hurry() { return should_hurry_; } | 38 bool should_hurry() { return should_hurry_; } |
39 void set_should_hurry(bool val) { should_hurry_ = val; } | 39 void set_should_hurry(bool val) { should_hurry_ = val; } |
40 | 40 |
41 bool weak_closure_was_overapproximated() const { | 41 bool weak_closure_was_overapproximated() const { |
42 return weak_closure_was_overapproximated_; | 42 return weak_closure_was_overapproximated_; |
43 } | 43 } |
44 void set_weak_closure_was_overapproximated(bool val) { | |
45 weak_closure_was_overapproximated_ = val; | |
46 } | |
47 | 44 |
48 inline bool IsStopped() { return state() == STOPPED; } | 45 inline bool IsStopped() { return state() == STOPPED; } |
49 | 46 |
50 INLINE(bool IsMarking()) { return state() >= MARKING; } | 47 INLINE(bool IsMarking()) { return state() >= MARKING; } |
51 | 48 |
52 inline bool IsMarkingIncomplete() { return state() == MARKING; } | 49 inline bool IsMarkingIncomplete() { return state() == MARKING; } |
53 | 50 |
54 inline bool IsComplete() { return state() == COMPLETE; } | 51 inline bool IsComplete() { return state() == COMPLETE; } |
55 | 52 |
56 GCRequestType request_type() const { return request_type_; } | 53 GCRequestType request_type() const { return request_type_; } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 size_t idle_marking_delay_counter_; | 239 size_t idle_marking_delay_counter_; |
243 | 240 |
244 int no_marking_scope_depth_; | 241 int no_marking_scope_depth_; |
245 | 242 |
246 int unscanned_bytes_of_large_object_; | 243 int unscanned_bytes_of_large_object_; |
247 | 244 |
248 bool was_activated_; | 245 bool was_activated_; |
249 | 246 |
250 bool weak_closure_was_overapproximated_; | 247 bool weak_closure_was_overapproximated_; |
251 | 248 |
| 249 int weak_closure_approximation_rounds_; |
| 250 |
252 GCRequestType request_type_; | 251 GCRequestType request_type_; |
253 | 252 |
254 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 253 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
255 }; | 254 }; |
256 } | 255 } |
257 } // namespace v8::internal | 256 } // namespace v8::internal |
258 | 257 |
259 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 258 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |