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

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: Add space after if 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
« no previous file with comments | « src/ia32/lithium-codegen-ia32.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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 enum SweepingParallelism { 601 enum SweepingParallelism {
602 SWEEP_SEQUENTIALLY, 602 SWEEP_SEQUENTIALLY,
603 SWEEP_IN_PARALLEL 603 SWEEP_IN_PARALLEL
604 }; 604 };
605 605
606 #ifdef VERIFY_HEAP 606 #ifdef VERIFY_HEAP
607 void VerifyMarkbitsAreClean(); 607 void VerifyMarkbitsAreClean();
608 static void VerifyMarkbitsAreClean(PagedSpace* space); 608 static void VerifyMarkbitsAreClean(PagedSpace* space);
609 static void VerifyMarkbitsAreClean(NewSpace* space); 609 static void VerifyMarkbitsAreClean(NewSpace* space);
610 void VerifyWeakEmbeddedMapsInOptimizedCode(); 610 void VerifyWeakEmbeddedMapsInOptimizedCode();
611 void VerifyOmittedPrototypeChecks();
611 #endif 612 #endif
612 613
613 // Sweep a single page from the given space conservatively. 614 // Sweep a single page from the given space conservatively.
614 // Return a number of reclaimed bytes. 615 // Return a number of reclaimed bytes.
615 template<SweepingParallelism type> 616 template<SweepingParallelism type>
616 static intptr_t SweepConservatively(PagedSpace* space, 617 static intptr_t SweepConservatively(PagedSpace* space,
617 FreeList* free_list, 618 FreeList* free_list,
618 Page* p); 619 Page* p);
619 620
620 INLINE(static bool ShouldSkipEvacuationSlotRecording(Object** anchor)) { 621 INLINE(static bool ShouldSkipEvacuationSlotRecording(Object** anchor)) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 // heap object. 827 // heap object.
827 static bool IsUnmarkedHeapObject(Object** p); 828 static bool IsUnmarkedHeapObject(Object** p);
828 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); 829 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p);
829 830
830 // Map transitions from a live map to a dead map must be killed. 831 // 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. 832 // We replace them with a null descriptor, with the same key.
832 void ClearNonLiveReferences(); 833 void ClearNonLiveReferences();
833 void ClearNonLivePrototypeTransitions(Map* map); 834 void ClearNonLivePrototypeTransitions(Map* map);
834 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); 835 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark);
835 836
836 void ClearAndDeoptimizeDependentCodes(Map* map); 837 void ClearAndDeoptimizeDependentCode(Map* map);
837 void ClearNonLiveDependentCodes(Map* map); 838 void ClearNonLiveDependentCode(Map* map);
838 839
839 // Marking detaches initial maps from SharedFunctionInfo objects 840 // Marking detaches initial maps from SharedFunctionInfo objects
840 // to make this reference weak. We need to reattach initial maps 841 // to make this reference weak. We need to reattach initial maps
841 // back after collection. This is either done during 842 // back after collection. This is either done during
842 // ClearNonLiveTransitions pass or by calling this function. 843 // ClearNonLiveTransitions pass or by calling this function.
843 void ReattachInitialMaps(); 844 void ReattachInitialMaps();
844 845
845 // Mark all values associated with reachable keys in weak maps encountered 846 // 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 847 // so far. This might push new object or even new weak maps onto the
847 // marking stack. 848 // marking stack.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 897
897 friend class Heap; 898 friend class Heap;
898 }; 899 };
899 900
900 901
901 const char* AllocationSpaceName(AllocationSpace space); 902 const char* AllocationSpaceName(AllocationSpace space);
902 903
903 } } // namespace v8::internal 904 } } // namespace v8::internal
904 905
905 #endif // V8_MARK_COMPACT_H_ 906 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698