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_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
10 | 10 |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 | 721 |
722 void EvacuatePagesInParallel(); | 722 void EvacuatePagesInParallel(); |
723 | 723 |
724 // The number of parallel compaction tasks, including the main thread. | 724 // The number of parallel compaction tasks, including the main thread. |
725 int NumberOfParallelCompactionTasks(); | 725 int NumberOfParallelCompactionTasks(); |
726 | 726 |
727 void WaitUntilCompactionCompleted(); | 727 void WaitUntilCompactionCompleted(); |
728 | 728 |
729 void EvacuateNewSpaceAndCandidates(); | 729 void EvacuateNewSpaceAndCandidates(); |
730 | 730 |
| 731 void VisitLiveObjects(Page* page, ObjectVisitor* visitor); |
| 732 |
| 733 void SweepAbortedPages(); |
| 734 |
731 void ReleaseEvacuationCandidates(); | 735 void ReleaseEvacuationCandidates(); |
732 | 736 |
733 // Moves the pages of the evacuation_candidates_ list to the end of their | 737 // Moves the pages of the evacuation_candidates_ list to the end of their |
734 // corresponding space pages list. | 738 // corresponding space pages list. |
735 void MoveEvacuationCandidatesToEndOfPagesList(); | 739 void MoveEvacuationCandidatesToEndOfPagesList(); |
736 | 740 |
737 void SweepSpace(PagedSpace* space, SweeperType sweeper); | 741 void SweepSpace(PagedSpace* space, SweeperType sweeper); |
738 | 742 |
739 // Finalizes the parallel sweeping phase. Marks all the pages that were | 743 // Finalizes the parallel sweeping phase. Marks all the pages that were |
740 // swept in parallel. | 744 // swept in parallel. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 private: | 863 private: |
860 MarkCompactCollector* collector_; | 864 MarkCompactCollector* collector_; |
861 }; | 865 }; |
862 | 866 |
863 | 867 |
864 const char* AllocationSpaceName(AllocationSpace space); | 868 const char* AllocationSpaceName(AllocationSpace space); |
865 } // namespace internal | 869 } // namespace internal |
866 } // namespace v8 | 870 } // namespace v8 |
867 | 871 |
868 #endif // V8_HEAP_MARK_COMPACT_H_ | 872 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |