OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_BODY_DESCRIPTORS_INL_H_ | 5 #ifndef V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ |
6 #define V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ | 6 #define V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ |
7 | 7 |
8 #include "src/objects-body-descriptors.h" | 8 #include "src/objects-body-descriptors.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 return Op::template apply<PropertyCell::BodyDescriptor>(p1, p2, p3); | 548 return Op::template apply<PropertyCell::BodyDescriptor>(p1, p2, p3); |
549 case WEAK_CELL_TYPE: | 549 case WEAK_CELL_TYPE: |
550 return Op::template apply<WeakCell::BodyDescriptor>(p1, p2, p3); | 550 return Op::template apply<WeakCell::BodyDescriptor>(p1, p2, p3); |
551 case SYMBOL_TYPE: | 551 case SYMBOL_TYPE: |
552 return Op::template apply<Symbol::BodyDescriptor>(p1, p2, p3); | 552 return Op::template apply<Symbol::BodyDescriptor>(p1, p2, p3); |
553 case BYTECODE_ARRAY_TYPE: | 553 case BYTECODE_ARRAY_TYPE: |
554 return Op::template apply<BytecodeArray::BodyDescriptor>(p1, p2, p3); | 554 return Op::template apply<BytecodeArray::BodyDescriptor>(p1, p2, p3); |
555 | 555 |
556 case HEAP_NUMBER_TYPE: | 556 case HEAP_NUMBER_TYPE: |
557 case MUTABLE_HEAP_NUMBER_TYPE: | 557 case MUTABLE_HEAP_NUMBER_TYPE: |
| 558 case SIMD128_VALUE_TYPE: |
558 case FILLER_TYPE: | 559 case FILLER_TYPE: |
559 case BYTE_ARRAY_TYPE: | 560 case BYTE_ARRAY_TYPE: |
560 case FREE_SPACE_TYPE: | 561 case FREE_SPACE_TYPE: |
561 return ReturnType(); | 562 return ReturnType(); |
562 | 563 |
563 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ | 564 #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ |
564 case FIXED_##TYPE##_ARRAY_TYPE: \ | 565 case FIXED_##TYPE##_ARRAY_TYPE: \ |
565 return Op::template apply<FixedTypedArrayBase::BodyDescriptor>(p1, p2, p3); | 566 return Op::template apply<FixedTypedArrayBase::BodyDescriptor>(p1, p2, p3); |
566 TYPED_ARRAYS(TYPED_ARRAY_CASE) | 567 TYPED_ARRAYS(TYPED_ARRAY_CASE) |
567 #undef TYPED_ARRAY_CASE | 568 #undef TYPED_ARRAY_CASE |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 | 610 |
610 template <typename ObjectVisitor> | 611 template <typename ObjectVisitor> |
611 void HeapObject::IterateBodyFast(InstanceType type, int object_size, | 612 void HeapObject::IterateBodyFast(InstanceType type, int object_size, |
612 ObjectVisitor* v) { | 613 ObjectVisitor* v) { |
613 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); | 614 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); |
614 } | 615 } |
615 } // namespace internal | 616 } // namespace internal |
616 } // namespace v8 | 617 } // namespace v8 |
617 | 618 |
618 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ | 619 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ |
OLD | NEW |