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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); | 279 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); |
280 void DeactivateIncrementalWriteBarrier(); | 280 void DeactivateIncrementalWriteBarrier(); |
281 | 281 |
282 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking, | 282 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking, |
283 bool is_compacting); | 283 bool is_compacting); |
284 | 284 |
285 static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking); | 285 static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking); |
286 | 286 |
287 INLINE(void ProcessMarkingDeque()); | 287 INLINE(void ProcessMarkingDeque()); |
288 | 288 |
289 INLINE(intptr_t ProcessMarkingDeque(intptr_t bytes_to_process)); | 289 INLINE(intptr_t ProcessMarkingDeque( |
| 290 intptr_t bytes_to_process, |
| 291 ForceCompletionAction completion = DO_NOT_FORCE_COMPLETION)); |
290 | 292 |
291 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); | 293 INLINE(void VisitObject(Map* map, HeapObject* obj, int size)); |
292 | 294 |
293 void IncrementIdleMarkingDelayCounter(); | 295 void IncrementIdleMarkingDelayCounter(); |
294 | 296 |
295 Heap* heap_; | 297 Heap* heap_; |
296 | 298 |
297 Observer observer_; | 299 Observer observer_; |
298 | 300 |
299 State state_; | 301 State state_; |
(...skipping 23 matching lines...) Expand all Loading... |
323 GCRequestType request_type_; | 325 GCRequestType request_type_; |
324 | 326 |
325 IncrementalMarkingJob incremental_marking_job_; | 327 IncrementalMarkingJob incremental_marking_job_; |
326 | 328 |
327 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 329 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
328 }; | 330 }; |
329 } // namespace internal | 331 } // namespace internal |
330 } // namespace v8 | 332 } // namespace v8 |
331 | 333 |
332 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ | 334 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ |
OLD | NEW |