| 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 // when mark bits are still intact. | 738 // when mark bits are still intact. |
| 739 bool IsSlotInBlackObject(Page* p, Address slot, HeapObject** out_object); | 739 bool IsSlotInBlackObject(Page* p, Address slot, HeapObject** out_object); |
| 740 bool IsSlotInBlackObjectSlow(Page* p, Address slot); | 740 bool IsSlotInBlackObjectSlow(Page* p, Address slot); |
| 741 bool IsSlotInLiveObject(Address slot); | 741 bool IsSlotInLiveObject(Address slot); |
| 742 void VerifyIsSlotInLiveObject(Address slot, HeapObject* object); | 742 void VerifyIsSlotInLiveObject(Address slot, HeapObject* object); |
| 743 | 743 |
| 744 // Removes all the slots in the slot buffers that are within the given | 744 // Removes all the slots in the slot buffers that are within the given |
| 745 // invalid_object. | 745 // invalid_object. |
| 746 void RemoveObjectSlots(HeapObject* invalid_object); | 746 void RemoveObjectSlots(HeapObject* invalid_object); |
| 747 | 747 |
| 748 // Record slots of deoptimized code that may point to evacuation candidates. |
| 749 void RecordDeoptimizedCodeSlots(Code* code); |
| 750 |
| 748 private: | 751 private: |
| 749 class SweeperTask; | 752 class SweeperTask; |
| 750 | 753 |
| 751 explicit MarkCompactCollector(Heap* heap); | 754 explicit MarkCompactCollector(Heap* heap); |
| 752 ~MarkCompactCollector(); | 755 ~MarkCompactCollector(); |
| 753 | 756 |
| 754 bool WillBeDeoptimized(Code* code); | 757 bool WillBeDeoptimized(Code* code); |
| 755 void EvictPopularEvacuationCandidate(Page* page); | 758 void EvictPopularEvacuationCandidate(Page* page); |
| 756 void ClearInvalidSlotsBufferEntries(PagedSpace* space); | 759 void ClearInvalidSlotsBufferEntries(PagedSpace* space); |
| 757 void ClearInvalidStoreAndSlotsBufferEntries(); | 760 void ClearInvalidStoreAndSlotsBufferEntries(); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 private: | 1032 private: |
| 1030 MarkCompactCollector* collector_; | 1033 MarkCompactCollector* collector_; |
| 1031 }; | 1034 }; |
| 1032 | 1035 |
| 1033 | 1036 |
| 1034 const char* AllocationSpaceName(AllocationSpace space); | 1037 const char* AllocationSpaceName(AllocationSpace space); |
| 1035 } | 1038 } |
| 1036 } // namespace v8::internal | 1039 } // namespace v8::internal |
| 1037 | 1040 |
| 1038 #endif // V8_HEAP_MARK_COMPACT_H_ | 1041 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |