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

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

Issue 440063002: Move ClearNonLiveReferences and friends into the gc. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | « no previous file | src/heap/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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_MARK_COMPACT_H_ 5 #ifndef V8_HEAP_MARK_COMPACT_H_
6 #define V8_HEAP_MARK_COMPACT_H_ 6 #define V8_HEAP_MARK_COMPACT_H_
7 7
8 #include "src/compiler-intrinsics.h" 8 #include "src/compiler-intrinsics.h"
9 #include "src/heap/spaces.h" 9 #include "src/heap/spaces.h"
10 10
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 // Callback function for telling whether the object *p is an unmarked 804 // Callback function for telling whether the object *p is an unmarked
805 // heap object. 805 // heap object.
806 static bool IsUnmarkedHeapObject(Object** p); 806 static bool IsUnmarkedHeapObject(Object** p);
807 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p); 807 static bool IsUnmarkedHeapObjectWithHeap(Heap* heap, Object** p);
808 808
809 // Map transitions from a live map to a dead map must be killed. 809 // Map transitions from a live map to a dead map must be killed.
810 // We replace them with a null descriptor, with the same key. 810 // We replace them with a null descriptor, with the same key.
811 void ClearNonLiveReferences(); 811 void ClearNonLiveReferences();
812 void ClearNonLivePrototypeTransitions(Map* map); 812 void ClearNonLivePrototypeTransitions(Map* map);
813 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark); 813 void ClearNonLiveMapTransitions(Map* map, MarkBit map_mark);
814 void ClearMapTransitions(Map* map);
815 bool ClearMapBackPointer(Map* map);
816 void TrimDescriptorArray(Map* map, DescriptorArray* descriptors,
817 int number_of_own_descriptors);
818 void TrimEnumCache(Map* map, DescriptorArray* descriptors);
814 819
815 void ClearDependentCode(DependentCode* dependent_code); 820 void ClearDependentCode(DependentCode* dependent_code);
816 void ClearDependentICList(Object* head); 821 void ClearDependentICList(Object* head);
817 void ClearNonLiveDependentCode(DependentCode* dependent_code); 822 void ClearNonLiveDependentCode(DependentCode* dependent_code);
818 int ClearNonLiveDependentCodeInGroup(DependentCode* dependent_code, int group, 823 int ClearNonLiveDependentCodeInGroup(DependentCode* dependent_code, int group,
819 int start, int end, int new_start); 824 int start, int end, int new_start);
820 825
821 // Mark all values associated with reachable keys in weak collections 826 // Mark all values associated with reachable keys in weak collections
822 // encountered so far. This might push new object or even new weak maps onto 827 // encountered so far. This might push new object or even new weak maps onto
823 // the marking stack. 828 // the marking stack.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 private: 957 private:
953 MarkCompactCollector* collector_; 958 MarkCompactCollector* collector_;
954 }; 959 };
955 960
956 961
957 const char* AllocationSpaceName(AllocationSpace space); 962 const char* AllocationSpaceName(AllocationSpace space);
958 } 963 }
959 } // namespace v8::internal 964 } // namespace v8::internal
960 965
961 #endif // V8_HEAP_MARK_COMPACT_H_ 966 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698