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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 void MarkAllocationSite(AllocationSite* site); | 660 void MarkAllocationSite(AllocationSite* site); |
661 | 661 |
662 MarkingDeque* marking_deque() { return &marking_deque_; } | 662 MarkingDeque* marking_deque() { return &marking_deque_; } |
663 | 663 |
664 void EnsureMarkingDequeIsCommittedAndInitialize(); | 664 void EnsureMarkingDequeIsCommittedAndInitialize(); |
665 | 665 |
666 void InitializeMarkingDeque(); | 666 void InitializeMarkingDeque(); |
667 | 667 |
668 void UncommitMarkingDeque(); | 668 void UncommitMarkingDeque(); |
669 | 669 |
| 670 void OverApproximateWeakClosure(); |
| 671 |
670 private: | 672 private: |
671 class SweeperTask; | 673 class SweeperTask; |
672 | 674 |
673 explicit MarkCompactCollector(Heap* heap); | 675 explicit MarkCompactCollector(Heap* heap); |
674 ~MarkCompactCollector(); | 676 ~MarkCompactCollector(); |
675 | 677 |
676 bool MarkInvalidatedCode(); | 678 bool MarkInvalidatedCode(); |
677 bool WillBeDeoptimized(Code* code); | 679 bool WillBeDeoptimized(Code* code); |
678 void RemoveDeadInvalidatedCode(); | 680 void RemoveDeadInvalidatedCode(); |
679 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 681 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 private: | 958 private: |
957 MarkCompactCollector* collector_; | 959 MarkCompactCollector* collector_; |
958 }; | 960 }; |
959 | 961 |
960 | 962 |
961 const char* AllocationSpaceName(AllocationSpace space); | 963 const char* AllocationSpaceName(AllocationSpace space); |
962 } | 964 } |
963 } // namespace v8::internal | 965 } // namespace v8::internal |
964 | 966 |
965 #endif // V8_HEAP_MARK_COMPACT_H_ | 967 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |