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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap/objects-visiting.h" | 7 #include "src/heap/objects-visiting.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 case JS_MAP_ITERATOR_TYPE: | 132 case JS_MAP_ITERATOR_TYPE: |
133 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, | 133 return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, |
134 instance_size, has_unboxed_fields); | 134 instance_size, has_unboxed_fields); |
135 | 135 |
136 case JS_FUNCTION_TYPE: | 136 case JS_FUNCTION_TYPE: |
137 return kVisitJSFunction; | 137 return kVisitJSFunction; |
138 | 138 |
139 case HEAP_NUMBER_TYPE: | 139 case HEAP_NUMBER_TYPE: |
140 case MUTABLE_HEAP_NUMBER_TYPE: | 140 case MUTABLE_HEAP_NUMBER_TYPE: |
141 case FLOAT32X4_TYPE: | 141 case FLOAT32X4_TYPE: |
142 #define EXTERNAL_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | |
143 case EXTERNAL_##TYPE##_ARRAY_TYPE: | |
144 | |
145 TYPED_ARRAYS(EXTERNAL_ARRAY_CASE) | |
146 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, | 142 return GetVisitorIdForSize(kVisitDataObject, kVisitDataObjectGeneric, |
147 instance_size, has_unboxed_fields); | 143 instance_size, has_unboxed_fields); |
148 #undef EXTERNAL_ARRAY_CASE | |
149 | 144 |
150 case FIXED_UINT8_ARRAY_TYPE: | 145 case FIXED_UINT8_ARRAY_TYPE: |
151 case FIXED_INT8_ARRAY_TYPE: | 146 case FIXED_INT8_ARRAY_TYPE: |
152 case FIXED_UINT16_ARRAY_TYPE: | 147 case FIXED_UINT16_ARRAY_TYPE: |
153 case FIXED_INT16_ARRAY_TYPE: | 148 case FIXED_INT16_ARRAY_TYPE: |
154 case FIXED_UINT32_ARRAY_TYPE: | 149 case FIXED_UINT32_ARRAY_TYPE: |
155 case FIXED_INT32_ARRAY_TYPE: | 150 case FIXED_INT32_ARRAY_TYPE: |
156 case FIXED_FLOAT32_ARRAY_TYPE: | 151 case FIXED_FLOAT32_ARRAY_TYPE: |
157 case FIXED_UINT8_CLAMPED_ARRAY_TYPE: | 152 case FIXED_UINT8_CLAMPED_ARRAY_TYPE: |
158 return kVisitFixedTypedArray; | 153 return kVisitFixedTypedArray; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 }; | 351 }; |
357 | 352 |
358 | 353 |
359 template Object* VisitWeakList<Context>(Heap* heap, Object* list, | 354 template Object* VisitWeakList<Context>(Heap* heap, Object* list, |
360 WeakObjectRetainer* retainer); | 355 WeakObjectRetainer* retainer); |
361 | 356 |
362 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, | 357 template Object* VisitWeakList<AllocationSite>(Heap* heap, Object* list, |
363 WeakObjectRetainer* retainer); | 358 WeakObjectRetainer* retainer); |
364 } // namespace internal | 359 } // namespace internal |
365 } // namespace v8 | 360 } // namespace v8 |
OLD | NEW |