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 #include "src/cancelable-task.h" | 8 #include "src/cancelable-task.h" |
9 #include "src/execution.h" | 9 #include "src/execution.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 bool is_compacting); | 307 bool is_compacting); |
308 | 308 |
309 static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking); | 309 static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking); |
310 | 310 |
311 INLINE(void ProcessMarkingDeque()); | 311 INLINE(void ProcessMarkingDeque()); |
312 | 312 |
313 INLINE(intptr_t ProcessMarkingDeque( | 313 INLINE(intptr_t ProcessMarkingDeque( |
314 intptr_t bytes_to_process, | 314 intptr_t bytes_to_process, |
315 ForceCompletionAction completion = DO_NOT_FORCE_COMPLETION)); | 315 ForceCompletionAction completion = DO_NOT_FORCE_COMPLETION)); |
316 | 316 |
| 317 INLINE(bool IsFixedArrayWithProgressBar(HeapObject* object)); |
317 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); | 318 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); |
318 | 319 |
319 void IncrementIdleMarkingDelayCounter(); | 320 void IncrementIdleMarkingDelayCounter(); |
320 | 321 |
321 void AdvanceIncrementalMarkingOnAllocation(); | 322 void AdvanceIncrementalMarkingOnAllocation(); |
322 | 323 |
323 size_t StepSizeToKeepUpWithAllocations(); | 324 size_t StepSizeToKeepUpWithAllocations(); |
324 size_t StepSizeToMakeProgress(); | 325 size_t StepSizeToMakeProgress(); |
325 | 326 |
326 Heap* heap_; | 327 Heap* heap_; |
(...skipping 23 matching lines...) Expand all Loading... |
350 | 351 |
351 Observer new_generation_observer_; | 352 Observer new_generation_observer_; |
352 Observer old_generation_observer_; | 353 Observer old_generation_observer_; |
353 | 354 |
354 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 355 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
355 }; | 356 }; |
356 } // namespace internal | 357 } // namespace internal |
357 } // namespace v8 | 358 } // namespace v8 |
358 | 359 |
359 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 360 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |