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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 case JS_DATA_VIEW_TYPE: | 462 case JS_DATA_VIEW_TYPE: |
463 case JS_SET_TYPE: | 463 case JS_SET_TYPE: |
464 case JS_MAP_TYPE: | 464 case JS_MAP_TYPE: |
465 case JS_SET_ITERATOR_TYPE: | 465 case JS_SET_ITERATOR_TYPE: |
466 case JS_MAP_ITERATOR_TYPE: | 466 case JS_MAP_ITERATOR_TYPE: |
467 case JS_ITERATOR_RESULT_TYPE: | 467 case JS_ITERATOR_RESULT_TYPE: |
468 case JS_REGEXP_TYPE: | 468 case JS_REGEXP_TYPE: |
469 case JS_GLOBAL_PROXY_TYPE: | 469 case JS_GLOBAL_PROXY_TYPE: |
470 case JS_GLOBAL_OBJECT_TYPE: | 470 case JS_GLOBAL_OBJECT_TYPE: |
471 case JS_MESSAGE_OBJECT_TYPE: | 471 case JS_MESSAGE_OBJECT_TYPE: |
472 case JS_BOUND_FUNCTION_TYPE: | |
473 return Op::template apply<JSObject::BodyDescriptor>(p1, p2, p3); | 472 return Op::template apply<JSObject::BodyDescriptor>(p1, p2, p3); |
474 case JS_WEAK_MAP_TYPE: | 473 case JS_WEAK_MAP_TYPE: |
475 case JS_WEAK_SET_TYPE: | 474 case JS_WEAK_SET_TYPE: |
476 return Op::template apply<JSWeakCollection::BodyDescriptor>(p1, p2, p3); | 475 return Op::template apply<JSWeakCollection::BodyDescriptor>(p1, p2, p3); |
477 case JS_ARRAY_BUFFER_TYPE: | 476 case JS_ARRAY_BUFFER_TYPE: |
478 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3); | 477 return Op::template apply<JSArrayBuffer::BodyDescriptor>(p1, p2, p3); |
479 case JS_FUNCTION_TYPE: | 478 case JS_FUNCTION_TYPE: |
480 return Op::template apply<JSFunction::BodyDescriptor>(p1, p2, p3); | 479 return Op::template apply<JSFunction::BodyDescriptor>(p1, p2, p3); |
481 case ODDBALL_TYPE: | 480 case ODDBALL_TYPE: |
482 return Op::template apply<Oddball::BodyDescriptor>(p1, p2, p3); | 481 return Op::template apply<Oddball::BodyDescriptor>(p1, p2, p3); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 555 |
557 template <typename ObjectVisitor> | 556 template <typename ObjectVisitor> |
558 void HeapObject::IterateBodyFast(InstanceType type, int object_size, | 557 void HeapObject::IterateBodyFast(InstanceType type, int object_size, |
559 ObjectVisitor* v) { | 558 ObjectVisitor* v) { |
560 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); | 559 BodyDescriptorApply<CallIterateBody, void>(type, this, object_size, v); |
561 } | 560 } |
562 } // namespace internal | 561 } // namespace internal |
563 } // namespace v8 | 562 } // namespace v8 |
564 | 563 |
565 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ | 564 #endif // V8_OBJECTS_BODY_DESCRIPTORS_INL_H_ |
OLD | NEW |