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