| 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 | 723 |
| 724 void UpdatePointersAfterEvacuation(); | 724 void UpdatePointersAfterEvacuation(); |
| 725 | 725 |
| 726 // Iterates through all live objects on a page using marking information. | 726 // Iterates through all live objects on a page using marking information. |
| 727 // Returns whether all objects have successfully been visited. | 727 // Returns whether all objects have successfully been visited. |
| 728 bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor, | 728 bool VisitLiveObjects(MemoryChunk* page, HeapObjectVisitor* visitor, |
| 729 IterationMode mode); | 729 IterationMode mode); |
| 730 | 730 |
| 731 void VisitLiveObjectsBody(Page* page, ObjectVisitor* visitor); | 731 void VisitLiveObjectsBody(Page* page, ObjectVisitor* visitor); |
| 732 | 732 |
| 733 void RecomputeLiveBytes(MemoryChunk* page); |
| 734 |
| 733 void SweepAbortedPages(); | 735 void SweepAbortedPages(); |
| 734 | 736 |
| 735 void ReleaseEvacuationCandidates(); | 737 void ReleaseEvacuationCandidates(); |
| 736 | 738 |
| 737 // Moves the pages of the evacuation_candidates_ list to the end of their | 739 // Moves the pages of the evacuation_candidates_ list to the end of their |
| 738 // corresponding space pages list. | 740 // corresponding space pages list. |
| 739 void MoveEvacuationCandidatesToEndOfPagesList(); | 741 void MoveEvacuationCandidatesToEndOfPagesList(); |
| 740 | 742 |
| 741 // Starts sweeping of a space by contributing on the main thread and setting | 743 // Starts sweeping of a space by contributing on the main thread and setting |
| 742 // up other pages for sweeping. | 744 // up other pages for sweeping. |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 private: | 895 private: |
| 894 MarkCompactCollector* collector_; | 896 MarkCompactCollector* collector_; |
| 895 }; | 897 }; |
| 896 | 898 |
| 897 | 899 |
| 898 const char* AllocationSpaceName(AllocationSpace space); | 900 const char* AllocationSpaceName(AllocationSpace space); |
| 899 } // namespace internal | 901 } // namespace internal |
| 900 } // namespace v8 | 902 } // namespace v8 |
| 901 | 903 |
| 902 #endif // V8_HEAP_MARK_COMPACT_H_ | 904 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |