| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 void DiscoverGreyObjectsInSpace(PagedSpace* space); | 649 void DiscoverGreyObjectsInSpace(PagedSpace* space); |
| 650 void DiscoverGreyObjectsInNewSpace(); | 650 void DiscoverGreyObjectsInNewSpace(); |
| 651 | 651 |
| 652 // Callback function for telling whether the object *p is an unmarked | 652 // Callback function for telling whether the object *p is an unmarked |
| 653 // heap object. | 653 // heap object. |
| 654 static bool IsUnmarkedHeapObject(Object** p); | 654 static bool IsUnmarkedHeapObject(Object** p); |
| 655 | 655 |
| 656 // Map transitions from a live map to a dead map must be killed. | 656 // Map transitions from a live map to a dead map must be killed. |
| 657 // We replace them with a null descriptor, with the same key. | 657 // We replace them with a null descriptor, with the same key. |
| 658 void ClearNonLiveReferences(); | 658 void ClearNonLiveReferences(); |
| 659 void ClearNonLivePrototypeTransitions(Map* map); | |
| 660 void ClearNonLiveMapTransitions(Map* map); | 659 void ClearNonLiveMapTransitions(Map* map); |
| 661 void ClearMapTransitions(Map* map, Map* dead_transition); | 660 void ClearMapTransitions(Map* map, Map* dead_transition); |
| 662 bool ClearMapBackPointer(Map* map); | 661 bool ClearMapBackPointer(Map* map); |
| 663 void MarkDependentCodeListForDeoptimization(DependentCode* list_head); | 662 void MarkDependentCodeListForDeoptimization(DependentCode* list_head); |
| 664 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors, | 663 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors, |
| 665 int number_of_own_descriptors); | 664 int number_of_own_descriptors); |
| 666 void TrimEnumCache(Map* map, DescriptorArray* descriptors); | 665 void TrimEnumCache(Map* map, DescriptorArray* descriptors); |
| 667 | 666 |
| 668 // Mark all values associated with reachable keys in weak collections | 667 // Mark all values associated with reachable keys in weak collections |
| 669 // encountered so far. This might push new object or even new weak maps onto | 668 // encountered so far. This might push new object or even new weak maps onto |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 private: | 863 private: |
| 865 MarkCompactCollector* collector_; | 864 MarkCompactCollector* collector_; |
| 866 }; | 865 }; |
| 867 | 866 |
| 868 | 867 |
| 869 const char* AllocationSpaceName(AllocationSpace space); | 868 const char* AllocationSpaceName(AllocationSpace space); |
| 870 } // namespace internal | 869 } // namespace internal |
| 871 } // namespace v8 | 870 } // namespace v8 |
| 872 | 871 |
| 873 #endif // V8_HEAP_MARK_COMPACT_H_ | 872 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |