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

Side by Side Diff: src/heap/objects-visiting.cc

Issue 1844413002: Use EmbedderHeapTracer instead of object grouping when trace_embedder_heap flag is set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move logic from heap to mark compact Created 4 years, 8 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
« no previous file with comments | « src/heap/objects-visiting.h ('k') | src/heap/objects-visiting-inl.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #include "src/heap/objects-visiting.h" 5 #include "src/heap/objects-visiting.h"
6 6
7 #include "src/heap/mark-compact-inl.h" 7 #include "src/heap/mark-compact-inl.h"
8 #include "src/heap/objects-visiting-inl.h" 8 #include "src/heap/objects-visiting-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 case JS_OBJECT_TYPE: 105 case JS_OBJECT_TYPE:
106 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: 106 case JS_CONTEXT_EXTENSION_OBJECT_TYPE:
107 case JS_GENERATOR_OBJECT_TYPE: 107 case JS_GENERATOR_OBJECT_TYPE:
108 case JS_MODULE_TYPE: 108 case JS_MODULE_TYPE:
109 case JS_VALUE_TYPE: 109 case JS_VALUE_TYPE:
110 case JS_DATE_TYPE: 110 case JS_DATE_TYPE:
111 case JS_ARRAY_TYPE: 111 case JS_ARRAY_TYPE:
112 case JS_GLOBAL_PROXY_TYPE: 112 case JS_GLOBAL_PROXY_TYPE:
113 case JS_GLOBAL_OBJECT_TYPE: 113 case JS_GLOBAL_OBJECT_TYPE:
114 case JS_SPECIAL_API_OBJECT_TYPE:
115 case JS_MESSAGE_OBJECT_TYPE: 114 case JS_MESSAGE_OBJECT_TYPE:
116 case JS_TYPED_ARRAY_TYPE: 115 case JS_TYPED_ARRAY_TYPE:
117 case JS_DATA_VIEW_TYPE: 116 case JS_DATA_VIEW_TYPE:
118 case JS_SET_TYPE: 117 case JS_SET_TYPE:
119 case JS_MAP_TYPE: 118 case JS_MAP_TYPE:
120 case JS_SET_ITERATOR_TYPE: 119 case JS_SET_ITERATOR_TYPE:
121 case JS_MAP_ITERATOR_TYPE: 120 case JS_MAP_ITERATOR_TYPE:
122 case JS_PROMISE_TYPE: 121 case JS_PROMISE_TYPE:
123 case JS_BOUND_FUNCTION_TYPE: 122 case JS_BOUND_FUNCTION_TYPE:
124 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, 123 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric,
125 instance_size, has_unboxed_fields); 124 instance_size, has_unboxed_fields);
125 case JS_API_OBJECT_TYPE:
126 case JS_SPECIAL_API_OBJECT_TYPE:
127 return GetVisitorIdForSize(kVisitJSApiObject, kVisitJSApiObjectGeneric,
128 instance_size, has_unboxed_fields);
126 129
127 case JS_FUNCTION_TYPE: 130 case JS_FUNCTION_TYPE:
128 return kVisitJSFunction; 131 return kVisitJSFunction;
129 132
130 case FILLER_TYPE: 133 case FILLER_TYPE:
131 if (instance_size == kPointerSize) return kVisitDataObjectGeneric; 134 if (instance_size == kPointerSize) return kVisitDataObjectGeneric;
132 // Fall through. 135 // Fall through.
133 case FOREIGN_TYPE: 136 case FOREIGN_TYPE:
134 case HEAP_NUMBER_TYPE: 137 case HEAP_NUMBER_TYPE:
135 case MUTABLE_HEAP_NUMBER_TYPE: 138 case MUTABLE_HEAP_NUMBER_TYPE:
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 }; 356 };
354 357
355 358
356 template Object* VisitWeakList<Context>(Heap* heap, Object* list, 359 template Object* VisitWeakList<Context>(Heap* heap, Object* list,
357 WeakObjectRetainer* retainer); 360 WeakObjectRetainer* retainer);
358 361
359 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, 362 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list,
360 WeakObjectRetainer* retainer); 363 WeakObjectRetainer* retainer);
361 } // namespace internal 364 } // namespace internal
362 } // namespace v8 365 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/objects-visiting.h ('k') | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698