| 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 SlotsBuffer** evacuation_slots_buffer); | 702 SlotsBuffer** evacuation_slots_buffer); |
| 703 | 703 |
| 704 void AddEvacuationSlotsBufferSynchronized( | 704 void AddEvacuationSlotsBufferSynchronized( |
| 705 SlotsBuffer* evacuation_slots_buffer); | 705 SlotsBuffer* evacuation_slots_buffer); |
| 706 | 706 |
| 707 void EvacuatePages(CompactionSpaceCollection* compaction_spaces, | 707 void EvacuatePages(CompactionSpaceCollection* compaction_spaces, |
| 708 SlotsBuffer** evacuation_slots_buffer); | 708 SlotsBuffer** evacuation_slots_buffer); |
| 709 | 709 |
| 710 void EvacuatePagesInParallel(); | 710 void EvacuatePagesInParallel(); |
| 711 | 711 |
| 712 int NumberOfParallelCompactionTasks() { | 712 // The number of parallel compaction tasks, including the main thread. |
| 713 // TODO(hpayer, mlippautz): Figure out some logic to determine the number | 713 int NumberOfParallelCompactionTasks(); |
| 714 // of compaction tasks. | |
| 715 return 1; | |
| 716 } | |
| 717 | 714 |
| 718 void WaitUntilCompactionCompleted(); | 715 void WaitUntilCompactionCompleted(); |
| 719 | 716 |
| 720 void EvacuateNewSpaceAndCandidates(); | 717 void EvacuateNewSpaceAndCandidates(); |
| 721 | 718 |
| 722 void ReleaseEvacuationCandidates(); | 719 void ReleaseEvacuationCandidates(); |
| 723 | 720 |
| 724 // Moves the pages of the evacuation_candidates_ list to the end of their | 721 // Moves the pages of the evacuation_candidates_ list to the end of their |
| 725 // corresponding space pages list. | 722 // corresponding space pages list. |
| 726 void MoveEvacuationCandidatesToEndOfPagesList(); | 723 void MoveEvacuationCandidatesToEndOfPagesList(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 private: | 847 private: |
| 851 MarkCompactCollector* collector_; | 848 MarkCompactCollector* collector_; |
| 852 }; | 849 }; |
| 853 | 850 |
| 854 | 851 |
| 855 const char* AllocationSpaceName(AllocationSpace space); | 852 const char* AllocationSpaceName(AllocationSpace space); |
| 856 } | 853 } |
| 857 } // namespace v8::internal | 854 } // namespace v8::internal |
| 858 | 855 |
| 859 #endif // V8_HEAP_MARK_COMPACT_H_ | 856 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |