| 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 // heap object. | 787 // heap object. |
| 788 static bool IsUnmarkedHeapObject(Object** p); | 788 static bool IsUnmarkedHeapObject(Object** p); |
| 789 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); | 789 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); |
| 790 | 790 |
| 791 // Map transitions from a live map to a dead map must be killed. | 791 // Map transitions from a live map to a dead map must be killed. |
| 792 // We replace them with a null descriptor, with the same key. | 792 // We replace them with a null descriptor, with the same key. |
| 793 void ClearNonLiveTransitions(); | 793 void ClearNonLiveTransitions(); |
| 794 void ClearNonLivePrototypeTransitions(Map* map); | 794 void ClearNonLivePrototypeTransitions(Map* map); |
| 795 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); | 795 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); |
| 796 | 796 |
| 797 void DeoptimizeLiveDependentCodes(Map* map); |
| 798 void ClearNonLiveDependentCodes(Map* map); |
| 799 |
| 797 // Marking detaches initial maps from SharedFunctionInfo objects | 800 // Marking detaches initial maps from SharedFunctionInfo objects |
| 798 // to make this reference weak. We need to reattach initial maps | 801 // to make this reference weak. We need to reattach initial maps |
| 799 // back after collection. This is either done during | 802 // back after collection. This is either done during |
| 800 // ClearNonLiveTransitions pass or by calling this function. | 803 // ClearNonLiveTransitions pass or by calling this function. |
| 801 void ReattachInitialMaps(); | 804 void ReattachInitialMaps(); |
| 802 | 805 |
| 803 // Mark all values associated with reachable keys in weak maps encountered | 806 // Mark all values associated with reachable keys in weak maps encountered |
| 804 // so far. This might push new object or even new weak maps onto the | 807 // so far. This might push new object or even new weak maps onto the |
| 805 // marking stack. | 808 // marking stack. |
| 806 void ProcessWeakMaps(); | 809 void ProcessWeakMaps(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 | 857 |
| 855 friend class Heap; | 858 friend class Heap; |
| 856 }; | 859 }; |
| 857 | 860 |
| 858 | 861 |
| 859 const char* AllocationSpaceName(AllocationSpace space); | 862 const char* AllocationSpaceName(AllocationSpace space); |
| 860 | 863 |
| 861 } } // namespace v8::internal | 864 } } // namespace v8::internal |
| 862 | 865 |
| 863 #endif // V8_MARK_COMPACT_H_ | 866 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |