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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 } | 441 } |
442 UNREACHABLE(); | 442 UNREACHABLE(); |
443 return ReturnType(); | 443 return ReturnType(); |
444 } | 444 } |
445 | 445 |
446 switch (type) { | 446 switch (type) { |
447 case FIXED_ARRAY_TYPE: | 447 case FIXED_ARRAY_TYPE: |
448 return Op::template apply<FixedArray::BodyDescriptor>(p1, p2, p3); | 448 return Op::template apply<FixedArray::BodyDescriptor>(p1, p2, p3); |
449 case FIXED_DOUBLE_ARRAY_TYPE: | 449 case FIXED_DOUBLE_ARRAY_TYPE: |
450 return ReturnType(); | 450 return ReturnType(); |
| 451 case TRANSITION_ARRAY_TYPE: |
| 452 return Op::template apply<TransitionArray::BodyDescriptor>(p1, p2, p3); |
451 case JS_OBJECT_TYPE: | 453 case JS_OBJECT_TYPE: |
452 case JS_PROMISE_TYPE: | 454 case JS_PROMISE_TYPE: |
453 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 455 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
454 case JS_GENERATOR_OBJECT_TYPE: | 456 case JS_GENERATOR_OBJECT_TYPE: |
455 case JS_MODULE_TYPE: | 457 case JS_MODULE_TYPE: |
456 case JS_VALUE_TYPE: | 458 case JS_VALUE_TYPE: |
457 case JS_DATE_TYPE: | 459 case JS_DATE_TYPE: |
458 case JS_ARRAY_TYPE: | 460 case JS_ARRAY_TYPE: |
459 case JS_TYPED_ARRAY_TYPE: | 461 case JS_TYPED_ARRAY_TYPE: |
460 case JS_DATA_VIEW_TYPE: | 462 case JS_DATA_VIEW_TYPE: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 | 557 |
556 template <typename ObjectVisitor> | 558 template <typename ObjectVisitor> |
557 void HeapObject::IterateBodyFast(InstanceType type, int object_size, | 559 void HeapObject::IterateBodyFast(InstanceType type, int object_size, |
558 ObjectVisitor* v) { | 560 ObjectVisitor* v) { |
559 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); | 561 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); |
560 } | 562 } |
561 } // namespace internal | 563 } // namespace internal |
562 } // namespace v8 | 564 } // namespace v8 |
563 | 565 |
564 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ | 566 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ |
OLD | NEW |