OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 // heap object. | 794 // heap object. |
795 static bool IsUnmarkedHeapObject(Object** p); | 795 static bool IsUnmarkedHeapObject(Object** p); |
796 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); | 796 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); |
797 | 797 |
798 // Map transitions from a live map to a dead map must be killed. | 798 // Map transitions from a live map to a dead map must be killed. |
799 // We replace them with a null descriptor, with the same key. | 799 // We replace them with a null descriptor, with the same key. |
800 void ClearNonLiveTransitions(); | 800 void ClearNonLiveTransitions(); |
801 void ClearNonLivePrototypeTransitions(Map* map); | 801 void ClearNonLivePrototypeTransitions(Map* map); |
802 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); | 802 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); |
803 | 803 |
| 804 void DeoptimizeLiveDependentCodes(Map* map); |
| 805 void ClearNonLiveDependentCodes(Map* map); |
| 806 |
804 // Marking detaches initial maps from SharedFunctionInfo objects | 807 // Marking detaches initial maps from SharedFunctionInfo objects |
805 // to make this reference weak. We need to reattach initial maps | 808 // to make this reference weak. We need to reattach initial maps |
806 // back after collection. This is either done during | 809 // back after collection. This is either done during |
807 // ClearNonLiveTransitions pass or by calling this function. | 810 // ClearNonLiveTransitions pass or by calling this function. |
808 void ReattachInitialMaps(); | 811 void ReattachInitialMaps(); |
809 | 812 |
810 // Mark all values associated with reachable keys in weak maps encountered | 813 // Mark all values associated with reachable keys in weak maps encountered |
811 // so far. This might push new object or even new weak maps onto the | 814 // so far. This might push new object or even new weak maps onto the |
812 // marking stack. | 815 // marking stack. |
813 void ProcessWeakMaps(); | 816 void ProcessWeakMaps(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 864 |
862 friend class Heap; | 865 friend class Heap; |
863 }; | 866 }; |
864 | 867 |
865 | 868 |
866 const char* AllocationSpaceName(AllocationSpace space); | 869 const char* AllocationSpaceName(AllocationSpace space); |
867 | 870 |
868 } } // namespace v8::internal | 871 } } // namespace v8::internal |
869 | 872 |
870 #endif // V8_MARK_COMPACT_H_ | 873 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |