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/assembler-inl.h" | 8 #include "src/assembler-inl.h" |
9 #include "src/objects-body-descriptors.h" | 9 #include "src/objects-body-descriptors.h" |
10 #include "src/objects/hash-table.h" | 10 #include "src/objects/hash-table.h" |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 case JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE: | 651 case JS_FAST_HOLEY_DOUBLE_ARRAY_VALUE_ITERATOR_TYPE: |
652 case JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE: | 652 case JS_GENERIC_ARRAY_VALUE_ITERATOR_TYPE: |
653 | 653 |
654 case JS_REGEXP_TYPE: | 654 case JS_REGEXP_TYPE: |
655 case JS_GLOBAL_PROXY_TYPE: | 655 case JS_GLOBAL_PROXY_TYPE: |
656 case JS_GLOBAL_OBJECT_TYPE: | 656 case JS_GLOBAL_OBJECT_TYPE: |
657 case JS_API_OBJECT_TYPE: | 657 case JS_API_OBJECT_TYPE: |
658 case JS_SPECIAL_API_OBJECT_TYPE: | 658 case JS_SPECIAL_API_OBJECT_TYPE: |
659 case JS_MESSAGE_OBJECT_TYPE: | 659 case JS_MESSAGE_OBJECT_TYPE: |
660 case JS_BOUND_FUNCTION_TYPE: | 660 case JS_BOUND_FUNCTION_TYPE: |
| 661 case WASM_INSTANCE_TYPE: |
| 662 case WASM_MEMORY_TYPE: |
| 663 case WASM_MODULE_TYPE: |
| 664 case WASM_TABLE_TYPE: |
661 return Op::template apply<JSObject::BodyDescriptor>(p1, p2, p3); | 665 return Op::template apply<JSObject::BodyDescriptor>(p1, p2, p3); |
662 case JS_WEAK_MAP_TYPE: | 666 case JS_WEAK_MAP_TYPE: |
663 case JS_WEAK_SET_TYPE: | 667 case JS_WEAK_SET_TYPE: |
664 return Op::template apply<JSWeakCollection::BodyDescriptor>(p1, p2, p3); | 668 return Op::template apply<JSWeakCollection::BodyDescriptor>(p1, p2, p3); |
665 case JS_ARRAY_BUFFER_TYPE: | 669 case JS_ARRAY_BUFFER_TYPE: |
666 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3); | 670 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3); |
667 case JS_FUNCTION_TYPE: | 671 case JS_FUNCTION_TYPE: |
668 return Op::template apply<JSFunction::BodyDescriptor>(p1, p2, p3); | 672 return Op::template apply<JSFunction::BodyDescriptor>(p1, p2, p3); |
669 case ODDBALL_TYPE: | 673 case ODDBALL_TYPE: |
670 return Op::template apply<Oddball::BodyDescriptor>(p1, p2, p3); | 674 return Op::template apply<Oddball::BodyDescriptor>(p1, p2, p3); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 | 753 |
750 template <typename ObjectVisitor> | 754 template <typename ObjectVisitor> |
751 void HeapObject::IterateBodyFast(InstanceType type, int object_size, | 755 void HeapObject::IterateBodyFast(InstanceType type, int object_size, |
752 ObjectVisitor* v) { | 756 ObjectVisitor* v) { |
753 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); | 757 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); |
754 } | 758 } |
755 } // namespace internal | 759 } // namespace internal |
756 } // namespace v8 | 760 } // namespace v8 |
757 | 761 |
758 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ | 762 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ |
OLD | NEW |