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

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

Issue 12225099: Remove prototype checks for leaf maps in optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merge 12224035 to this CL and address Michael's comments Created 7 years, 10 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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 // heap object. 823 // heap object.
824 static bool IsUnmarkedHeapObject(Object** p); 824 static bool IsUnmarkedHeapObject(Object** p);
825 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); 825 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p);
826 826
827 // Map transitions from a live map to a dead map must be killed. 827 // Map transitions from a live map to a dead map must be killed.
828 // We replace them with a null descriptor, with the same key. 828 // We replace them with a null descriptor, with the same key.
829 void ClearNonLiveReferences(); 829 void ClearNonLiveReferences();
830 void ClearNonLivePrototypeTransitions(Map* map); 830 void ClearNonLivePrototypeTransitions(Map* map);
831 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); 831 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark);
832 832
833 void ClearAndDeoptimizeDependentCodes(Map* map); 833 void ClearAndDeoptimizeDependentCode(Map* map);
834 void ClearNonLiveDependentCodes(Map* map); 834 void ClearNonLiveDependentCode(Map* map);
835 835
836 // Marking detaches initial maps from SharedFunctionInfo objects 836 // Marking detaches initial maps from SharedFunctionInfo objects
837 // to make this reference weak. We need to reattach initial maps 837 // to make this reference weak. We need to reattach initial maps
838 // back after collection. This is either done during 838 // back after collection. This is either done during
839 // ClearNonLiveTransitions pass or by calling this function. 839 // ClearNonLiveTransitions pass or by calling this function.
840 void ReattachInitialMaps(); 840 void ReattachInitialMaps();
841 841
842 // Mark all values associated with reachable keys in weak maps encountered 842 // Mark all values associated with reachable keys in weak maps encountered
843 // so far. This might push new object or even new weak maps onto the 843 // so far. This might push new object or even new weak maps onto the
844 // marking stack. 844 // marking stack.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 893
894 friend class Heap; 894 friend class Heap;
895 }; 895 };
896 896
897 897
898 const char* AllocationSpaceName(AllocationSpace space); 898 const char* AllocationSpaceName(AllocationSpace space);
899 899
900 } } // namespace v8::internal 900 } } // namespace v8::internal
901 901
902 #endif // V8_MARK_COMPACT_H_ 902 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/mark-compact.cc » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698