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