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_MARK_COMPACT_H_ | 5 #ifndef V8_MARK_COMPACT_H_ |
6 #define V8_MARK_COMPACT_H_ | 6 #define V8_MARK_COMPACT_H_ |
7 | 7 |
8 #include "src/compiler-intrinsics.h" | 8 #include "src/compiler-intrinsics.h" |
9 #include "src/spaces.h" | 9 #include "src/spaces.h" |
10 | 10 |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 void MoveEvacuationCandidatesToEndOfPagesList(); | 888 void MoveEvacuationCandidatesToEndOfPagesList(); |
889 | 889 |
890 void SweepSpace(PagedSpace* space, SweeperType sweeper); | 890 void SweepSpace(PagedSpace* space, SweeperType sweeper); |
891 | 891 |
892 // Finalizes the parallel sweeping phase. Marks all the pages that were | 892 // Finalizes the parallel sweeping phase. Marks all the pages that were |
893 // swept in parallel. | 893 // swept in parallel. |
894 void ParallelSweepSpacesComplete(); | 894 void ParallelSweepSpacesComplete(); |
895 | 895 |
896 void ParallelSweepSpaceComplete(PagedSpace* space); | 896 void ParallelSweepSpaceComplete(PagedSpace* space); |
897 | 897 |
| 898 // Updates store buffer and slot buffer for a pointer in a migrating object. |
| 899 void RecordMigratedSlot(Object* value, Address slot); |
| 900 |
898 #ifdef DEBUG | 901 #ifdef DEBUG |
899 friend class MarkObjectVisitor; | 902 friend class MarkObjectVisitor; |
900 static void VisitObject(HeapObject* obj); | 903 static void VisitObject(HeapObject* obj); |
901 | 904 |
902 friend class UnmarkObjectVisitor; | 905 friend class UnmarkObjectVisitor; |
903 static void UnmarkObject(HeapObject* obj); | 906 static void UnmarkObject(HeapObject* obj); |
904 #endif | 907 #endif |
905 | 908 |
906 Heap* heap_; | 909 Heap* heap_; |
907 MarkingDeque marking_deque_; | 910 MarkingDeque marking_deque_; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 private: | 979 private: |
977 MarkCompactCollector* collector_; | 980 MarkCompactCollector* collector_; |
978 }; | 981 }; |
979 | 982 |
980 | 983 |
981 const char* AllocationSpaceName(AllocationSpace space); | 984 const char* AllocationSpaceName(AllocationSpace space); |
982 | 985 |
983 } } // namespace v8::internal | 986 } } // namespace v8::internal |
984 | 987 |
985 #endif // V8_MARK_COMPACT_H_ | 988 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |