Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects-body-descriptors-inl.h

Issue 2964943002: [wasm] Introduce instance types for WebAssembly.* objects. (Closed)
Patch Set: Address rossberg comments. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698