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 #include "src/heap/incremental-marking.h" | 5 #include "src/heap/incremental-marking.h" |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/compilation-cache.h" | 8 #include "src/compilation-cache.h" |
9 #include "src/conversions.h" | 9 #include "src/conversions.h" |
10 #include "src/heap/concurrent-marking.h" | 10 #include "src/heap/concurrent-marking.h" |
11 #include "src/heap/gc-idle-time-handler.h" | 11 #include "src/heap/gc-idle-time-handler.h" |
12 #include "src/heap/gc-tracer.h" | 12 #include "src/heap/gc-tracer.h" |
13 #include "src/heap/heap-inl.h" | 13 #include "src/heap/heap-inl.h" |
14 #include "src/heap/mark-compact-inl.h" | 14 #include "src/heap/mark-compact-inl.h" |
15 #include "src/heap/object-stats.h" | 15 #include "src/heap/object-stats.h" |
16 #include "src/heap/objects-visiting-inl.h" | 16 #include "src/heap/objects-visiting-inl.h" |
17 #include "src/heap/objects-visiting.h" | 17 #include "src/heap/objects-visiting.h" |
18 #include "src/tracing/trace-event.h" | 18 #include "src/tracing/trace-event.h" |
19 #include "src/v8.h" | 19 #include "src/v8.h" |
20 | 20 |
21 namespace v8 { | 21 namespace v8 { |
22 namespace internal { | 22 namespace internal { |
23 | 23 |
24 IncrementalMarking::IncrementalMarking(Heap* heap) | 24 IncrementalMarking::IncrementalMarking(Heap* heap) |
25 : heap_(heap), | 25 : heap_(heap), |
26 state_(STOPPED), | |
27 initial_old_generation_size_(0), | 26 initial_old_generation_size_(0), |
28 bytes_marked_ahead_of_schedule_(0), | 27 bytes_marked_ahead_of_schedule_(0), |
29 unscanned_bytes_of_large_object_(0), | 28 unscanned_bytes_of_large_object_(0), |
| 29 state_(STOPPED), |
30 idle_marking_delay_counter_(0), | 30 idle_marking_delay_counter_(0), |
31 incremental_marking_finalization_rounds_(0), | 31 incremental_marking_finalization_rounds_(0), |
32 is_compacting_(false), | 32 is_compacting_(false), |
33 should_hurry_(false), | 33 should_hurry_(false), |
34 was_activated_(false), | 34 was_activated_(false), |
35 black_allocation_(false), | 35 black_allocation_(false), |
36 finalize_marking_completed_(false), | 36 finalize_marking_completed_(false), |
37 trace_wrappers_toggle_(false), | 37 trace_wrappers_toggle_(false), |
38 request_type_(NONE), | 38 request_type_(NONE), |
39 new_generation_observer_(*this, kAllocatedThreshold), | 39 new_generation_observer_(*this, kAllocatedThreshold), |
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 idle_marking_delay_counter_++; | 1184 idle_marking_delay_counter_++; |
1185 } | 1185 } |
1186 | 1186 |
1187 | 1187 |
1188 void IncrementalMarking::ClearIdleMarkingDelayCounter() { | 1188 void IncrementalMarking::ClearIdleMarkingDelayCounter() { |
1189 idle_marking_delay_counter_ = 0; | 1189 idle_marking_delay_counter_ = 0; |
1190 } | 1190 } |
1191 | 1191 |
1192 } // namespace internal | 1192 } // namespace internal |
1193 } // namespace v8 | 1193 } // namespace v8 |
OLD | NEW |