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

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: Rebase 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 // heap object. 826 // heap object.
827 static bool IsUnmarkedHeapObject(Object** p); 827 static bool IsUnmarkedHeapObject(Object** p);
828 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); 828 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p);
829 829
830 // Map transitions from a live map to a dead map must be killed. 830 // Map transitions from a live map to a dead map must be killed.
831 // We replace them with a null descriptor, with the same key. 831 // We replace them with a null descriptor, with the same key.
832 void ClearNonLiveReferences(); 832 void ClearNonLiveReferences();
833 void ClearNonLivePrototypeTransitions(Map* map); 833 void ClearNonLivePrototypeTransitions(Map* map);
834 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); 834 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark);
835 835
836 void ClearAndDeoptimizeDependentCodes(Map* map); 836 void ClearAndDeoptimizeDependentCode(Map* map);
837 void ClearNonLiveDependentCodes(Map* map); 837 void ClearNonLiveDependentCode(Map* map);
838 838
839 // Marking detaches initial maps from SharedFunctionInfo objects 839 // Marking detaches initial maps from SharedFunctionInfo objects
840 // to make this reference weak. We need to reattach initial maps 840 // to make this reference weak. We need to reattach initial maps
841 // back after collection. This is either done during 841 // back after collection. This is either done during
842 // ClearNonLiveTransitions pass or by calling this function. 842 // ClearNonLiveTransitions pass or by calling this function.
843 void ReattachInitialMaps(); 843 void ReattachInitialMaps();
844 844
845 // Mark all values associated with reachable keys in weak maps encountered 845 // Mark all values associated with reachable keys in weak maps encountered
846 // so far. This might push new object or even new weak maps onto the 846 // so far. This might push new object or even new weak maps onto the
847 // marking stack. 847 // marking stack.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 896
897 friend class Heap; 897 friend class Heap;
898 }; 898 };
899 899
900 900
901 const char* AllocationSpaceName(AllocationSpace space); 901 const char* AllocationSpaceName(AllocationSpace space);
902 902
903 } } // namespace v8::internal 903 } } // namespace v8::internal
904 904
905 #endif // V8_MARK_COMPACT_H_ 905 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mark-compact.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698