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

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: 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
« no previous file with comments | « src/lithium.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // literal map caches removing unmarked entries. 790 // literal map caches removing unmarked entries.
791 void ProcessMapCaches(); 791 void ProcessMapCaches();
792 792
793 // Callback function for telling whether the object *p is an unmarked 793 // Callback function for telling whether the object *p is an unmarked
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 ClearNonLiveReferences();
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 ClearAndDeoptimizeDependentCodes(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
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_
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698