| 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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 void ReleaseEvacuationCandidates(); | 742 void ReleaseEvacuationCandidates(); |
| 743 | 743 |
| 744 // Starts sweeping of a space by contributing on the main thread and setting | 744 // Starts sweeping of a space by contributing on the main thread and setting |
| 745 // up other pages for sweeping. | 745 // up other pages for sweeping. |
| 746 void StartSweepSpace(PagedSpace* space); | 746 void StartSweepSpace(PagedSpace* space); |
| 747 | 747 |
| 748 // Finalizes the parallel sweeping phase. Marks all the pages that were | 748 // Finalizes the parallel sweeping phase. Marks all the pages that were |
| 749 // swept in parallel. | 749 // swept in parallel. |
| 750 void ParallelSweepSpacesComplete(); | 750 void ParallelSweepSpacesComplete(); |
| 751 | 751 |
| 752 void ParallelSweepSpaceComplete(PagedSpace* space); | |
| 753 | |
| 754 // Updates store buffer and slot buffer for a pointer in a migrating object. | 752 // Updates store buffer and slot buffer for a pointer in a migrating object. |
| 755 void RecordMigratedSlot(Object* value, Address slot, | 753 void RecordMigratedSlot(Object* value, Address slot, |
| 756 SlotsBuffer** evacuation_slots_buffer); | 754 SlotsBuffer** evacuation_slots_buffer); |
| 757 | 755 |
| 758 // Adds the code entry slot to the slots buffer. | 756 // Adds the code entry slot to the slots buffer. |
| 759 void RecordMigratedCodeEntrySlot(Address code_entry, Address code_entry_slot, | 757 void RecordMigratedCodeEntrySlot(Address code_entry, Address code_entry_slot, |
| 760 SlotsBuffer** evacuation_slots_buffer); | 758 SlotsBuffer** evacuation_slots_buffer); |
| 761 | 759 |
| 762 // Adds the slot of a moved code object. | 760 // Adds the slot of a moved code object. |
| 763 void RecordMigratedCodeObjectSlot(Address code_object, | 761 void RecordMigratedCodeObjectSlot(Address code_object, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 private: | 898 private: |
| 901 MarkCompactCollector* collector_; | 899 MarkCompactCollector* collector_; |
| 902 }; | 900 }; |
| 903 | 901 |
| 904 | 902 |
| 905 const char* AllocationSpaceName(AllocationSpace space); | 903 const char* AllocationSpaceName(AllocationSpace space); |
| 906 } // namespace internal | 904 } // namespace internal |
| 907 } // namespace v8 | 905 } // namespace v8 |
| 908 | 906 |
| 909 #endif // V8_HEAP_MARK_COMPACT_H_ | 907 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |