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 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2845 void set_eval_script(const Script& value) const; | 2845 void set_eval_script(const Script& value) const; |
2846 void set_num_optional_parameters(intptr_t value) const; // Encoded value. | 2846 void set_num_optional_parameters(intptr_t value) const; // Encoded value. |
2847 void set_kind_tag(uint32_t value) const; | 2847 void set_kind_tag(uint32_t value) const; |
2848 void set_data(const Object& value) const; | 2848 void set_data(const Object& value) const; |
2849 | 2849 |
2850 static RawFunction* New(); | 2850 static RawFunction* New(); |
2851 | 2851 |
2852 RawString* QualifiedName(NameVisibility name_visibility) const; | 2852 RawString* QualifiedName(NameVisibility name_visibility) const; |
2853 | 2853 |
2854 void BuildSignatureParameters( | 2854 void BuildSignatureParameters( |
| 2855 Thread* thread, |
| 2856 Zone* zone, |
2855 bool instantiate, | 2857 bool instantiate, |
2856 NameVisibility name_visibility, | 2858 NameVisibility name_visibility, |
2857 const TypeArguments& instantiator, | 2859 const TypeArguments& instantiator, |
2858 GrowableHandlePtrArray<const String>* pieces) const; | 2860 GrowableHandlePtrArray<const String>* pieces) const; |
2859 RawString* BuildSignature(bool instantiate, | 2861 RawString* BuildSignature(bool instantiate, |
2860 NameVisibility name_visibility, | 2862 NameVisibility name_visibility, |
2861 const TypeArguments& instantiator) const; | 2863 const TypeArguments& instantiator) const; |
2862 | 2864 |
2863 // Checks the type of the formal parameter at the given position for | 2865 // Checks the type of the formal parameter at the given position for |
2864 // subtyping or 'more specific' relationship between the type of this function | 2866 // subtyping or 'more specific' relationship between the type of this function |
(...skipping 5588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8453 | 8455 |
8454 | 8456 |
8455 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8457 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8456 intptr_t index) { | 8458 intptr_t index) { |
8457 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8459 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8458 } | 8460 } |
8459 | 8461 |
8460 } // namespace dart | 8462 } // namespace dart |
8461 | 8463 |
8462 #endif // VM_OBJECT_H_ | 8464 #endif // VM_OBJECT_H_ |
OLD | NEW |