Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: src/mark-compact.h

Issue 11575007: Make embedded maps in optimized code weak. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix skipping of maps in visitors. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/mark-compact.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698