OLD | NEW |
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 case JS_MODULE_TYPE: | 130 case JS_MODULE_TYPE: |
131 case JS_VALUE_TYPE: | 131 case JS_VALUE_TYPE: |
132 case JS_DATE_TYPE: | 132 case JS_DATE_TYPE: |
133 case JS_ARRAY_TYPE: | 133 case JS_ARRAY_TYPE: |
134 case JS_GLOBAL_PROXY_TYPE: | 134 case JS_GLOBAL_PROXY_TYPE: |
135 case JS_GLOBAL_OBJECT_TYPE: | 135 case JS_GLOBAL_OBJECT_TYPE: |
136 case JS_BUILTINS_OBJECT_TYPE: | 136 case JS_BUILTINS_OBJECT_TYPE: |
137 case JS_MESSAGE_OBJECT_TYPE: | 137 case JS_MESSAGE_OBJECT_TYPE: |
138 case JS_SET_ITERATOR_TYPE: | 138 case JS_SET_ITERATOR_TYPE: |
139 case JS_MAP_ITERATOR_TYPE: | 139 case JS_MAP_ITERATOR_TYPE: |
| 140 case JS_ITERATOR_RESULT_TYPE: |
140 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, | 141 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, |
141 instance_size, has_unboxed_fields); | 142 instance_size, has_unboxed_fields); |
142 | 143 |
143 case JS_FUNCTION_TYPE: | 144 case JS_FUNCTION_TYPE: |
144 return kVisitJSFunction; | 145 return kVisitJSFunction; |
145 | 146 |
146 case HEAP_NUMBER_TYPE: | 147 case HEAP_NUMBER_TYPE: |
147 case MUTABLE_HEAP_NUMBER_TYPE: | 148 case MUTABLE_HEAP_NUMBER_TYPE: |
148 case SIMD128_VALUE_TYPE: | 149 case SIMD128_VALUE_TYPE: |
149 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, | 150 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 case JS_VALUE_TYPE: | 220 case JS_VALUE_TYPE: |
220 case JS_DATE_TYPE: | 221 case JS_DATE_TYPE: |
221 case JS_ARRAY_TYPE: | 222 case JS_ARRAY_TYPE: |
222 case JS_ARRAY_BUFFER_TYPE: | 223 case JS_ARRAY_BUFFER_TYPE: |
223 case JS_TYPED_ARRAY_TYPE: | 224 case JS_TYPED_ARRAY_TYPE: |
224 case JS_DATA_VIEW_TYPE: | 225 case JS_DATA_VIEW_TYPE: |
225 case JS_SET_TYPE: | 226 case JS_SET_TYPE: |
226 case JS_MAP_TYPE: | 227 case JS_MAP_TYPE: |
227 case JS_SET_ITERATOR_TYPE: | 228 case JS_SET_ITERATOR_TYPE: |
228 case JS_MAP_ITERATOR_TYPE: | 229 case JS_MAP_ITERATOR_TYPE: |
| 230 case JS_ITERATOR_RESULT_TYPE: |
229 case JS_WEAK_MAP_TYPE: | 231 case JS_WEAK_MAP_TYPE: |
230 case JS_WEAK_SET_TYPE: | 232 case JS_WEAK_SET_TYPE: |
231 case JS_REGEXP_TYPE: | 233 case JS_REGEXP_TYPE: |
232 case JS_GLOBAL_PROXY_TYPE: | 234 case JS_GLOBAL_PROXY_TYPE: |
233 case JS_GLOBAL_OBJECT_TYPE: | 235 case JS_GLOBAL_OBJECT_TYPE: |
234 case JS_BUILTINS_OBJECT_TYPE: | 236 case JS_BUILTINS_OBJECT_TYPE: |
235 case JS_MESSAGE_OBJECT_TYPE: | 237 case JS_MESSAGE_OBJECT_TYPE: |
236 JSObject::BodyDescriptor::IterateBody(this, object_size, v); | 238 JSObject::BodyDescriptor::IterateBody(this, object_size, v); |
237 break; | 239 break; |
238 case JS_FUNCTION_TYPE: | 240 case JS_FUNCTION_TYPE: |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 }; | 490 }; |
489 | 491 |
490 | 492 |
491 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 493 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
492 WeakObjectRetainer* retainer); | 494 WeakObjectRetainer* retainer); |
493 | 495 |
494 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 496 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
495 WeakObjectRetainer* retainer); | 497 WeakObjectRetainer* retainer); |
496 } // namespace internal | 498 } // namespace internal |
497 } // namespace v8 | 499 } // namespace v8 |
OLD | NEW |