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_INCREMENTAL_MARKING_H_ | 5 #ifndef V8_INCREMENTAL_MARKING_H_ |
6 #define V8_INCREMENTAL_MARKING_H_ | 6 #define V8_INCREMENTAL_MARKING_H_ |
7 | 7 |
8 | 8 |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/mark-compact.h" | 10 #include "src/mark-compact.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 224 |
225 INLINE(void ProcessMarkingDeque(intptr_t bytes_to_process)); | 225 INLINE(void ProcessMarkingDeque(intptr_t bytes_to_process)); |
226 | 226 |
227 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); | 227 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); |
228 | 228 |
229 Heap* heap_; | 229 Heap* heap_; |
230 | 230 |
231 State state_; | 231 State state_; |
232 bool is_compacting_; | 232 bool is_compacting_; |
233 | 233 |
234 VirtualMemory* marking_deque_memory_; | 234 base::VirtualMemory* marking_deque_memory_; |
235 bool marking_deque_memory_committed_; | 235 bool marking_deque_memory_committed_; |
236 MarkingDeque marking_deque_; | 236 MarkingDeque marking_deque_; |
237 | 237 |
238 int steps_count_; | 238 int steps_count_; |
239 double steps_took_; | 239 double steps_took_; |
240 double longest_step_; | 240 double longest_step_; |
241 int64_t old_generation_space_available_at_start_of_incremental_; | 241 int64_t old_generation_space_available_at_start_of_incremental_; |
242 int64_t old_generation_space_used_at_start_of_incremental_; | 242 int64_t old_generation_space_used_at_start_of_incremental_; |
243 int steps_count_since_last_gc_; | 243 int steps_count_since_last_gc_; |
244 double steps_took_since_last_gc_; | 244 double steps_took_since_last_gc_; |
245 int64_t bytes_rescanned_; | 245 int64_t bytes_rescanned_; |
246 bool should_hurry_; | 246 bool should_hurry_; |
247 int marking_speed_; | 247 int marking_speed_; |
248 intptr_t bytes_scanned_; | 248 intptr_t bytes_scanned_; |
249 intptr_t allocated_; | 249 intptr_t allocated_; |
250 intptr_t write_barriers_invoked_since_last_step_; | 250 intptr_t write_barriers_invoked_since_last_step_; |
251 | 251 |
252 int no_marking_scope_depth_; | 252 int no_marking_scope_depth_; |
253 | 253 |
254 int unscanned_bytes_of_large_object_; | 254 int unscanned_bytes_of_large_object_; |
255 | 255 |
256 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 256 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
257 }; | 257 }; |
258 | 258 |
259 } } // namespace v8::internal | 259 } } // namespace v8::internal |
260 | 260 |
261 #endif // V8_INCREMENTAL_MARKING_H_ | 261 #endif // V8_INCREMENTAL_MARKING_H_ |
OLD | NEW |