OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
(...skipping 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 void set_eval_script(const Script& value) const; | 2693 void set_eval_script(const Script& value) const; |
2694 void set_num_optional_parameters(intptr_t value) const; // Encoded value. | 2694 void set_num_optional_parameters(intptr_t value) const; // Encoded value. |
2695 void set_kind_tag(intptr_t value) const; | 2695 void set_kind_tag(intptr_t value) const; |
2696 void set_data(const Object& value) const; | 2696 void set_data(const Object& value) const; |
2697 | 2697 |
2698 static RawFunction* New(); | 2698 static RawFunction* New(); |
2699 | 2699 |
2700 void BuildSignatureParameters(bool instantiate, | 2700 void BuildSignatureParameters(bool instantiate, |
2701 NameVisibility name_visibility, | 2701 NameVisibility name_visibility, |
2702 const TypeArguments& instantiator, | 2702 const TypeArguments& instantiator, |
2703 const GrowableObjectArray& pieces) const; | 2703 GrowableArray<const String*>* pieces) const; |
2704 RawString* BuildSignature(bool instantiate, | 2704 RawString* BuildSignature(bool instantiate, |
2705 NameVisibility name_visibility, | 2705 NameVisibility name_visibility, |
2706 const TypeArguments& instantiator) const; | 2706 const TypeArguments& instantiator) const; |
2707 | 2707 |
2708 // Check the subtype or 'more specific' relationship. | 2708 // Check the subtype or 'more specific' relationship. |
2709 bool TypeTest(TypeTestKind test_kind, | 2709 bool TypeTest(TypeTestKind test_kind, |
2710 const TypeArguments& type_arguments, | 2710 const TypeArguments& type_arguments, |
2711 const Function& other, | 2711 const Function& other, |
2712 const TypeArguments& other_type_arguments, | 2712 const TypeArguments& other_type_arguments, |
2713 Error* bound_error) const; | 2713 Error* bound_error) const; |
(...skipping 5334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8048 | 8048 |
8049 | 8049 |
8050 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8050 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8051 intptr_t index) { | 8051 intptr_t index) { |
8052 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8052 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8053 } | 8053 } |
8054 | 8054 |
8055 } // namespace dart | 8055 } // namespace dart |
8056 | 8056 |
8057 #endif // VM_OBJECT_H_ | 8057 #endif // VM_OBJECT_H_ |
OLD | NEW |