OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 RUNTIME_VM_RESOLVER_H_ | 5 #ifndef RUNTIME_VM_RESOLVER_H_ |
6 #define RUNTIME_VM_RESOLVER_H_ | 6 #define RUNTIME_VM_RESOLVER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 // Resolve specified dart static function. If library.IsNull, use | 44 // Resolve specified dart static function. If library.IsNull, use |
45 // either application library or core library if no application library | 45 // either application library or core library if no application library |
46 // exists. Passing negative num_arguments means that the function | 46 // exists. Passing negative num_arguments means that the function |
47 // will be resolved by name only. | 47 // will be resolved by name only. |
48 // Otherwise null is returned if the number or names of arguments are not | 48 // Otherwise null is returned if the number or names of arguments are not |
49 // valid for the resolved function. | 49 // valid for the resolved function. |
50 static RawFunction* ResolveStatic(const Library& library, | 50 static RawFunction* ResolveStatic(const Library& library, |
51 const String& cls_name, | 51 const String& cls_name, |
52 const String& function_name, | 52 const String& function_name, |
| 53 intptr_t type_args_len, |
53 intptr_t num_arguments, | 54 intptr_t num_arguments, |
54 const Array& argument_names); | 55 const Array& argument_names); |
55 | 56 |
56 // Resolve specified dart static function with specified arity. Only resolves | 57 // Resolve specified dart static function with specified arity. Only resolves |
57 // public functions. | 58 // public functions. |
58 static RawFunction* ResolveStatic(const Class& cls, | 59 static RawFunction* ResolveStatic(const Class& cls, |
59 const String& function_name, | 60 const String& function_name, |
| 61 intptr_t type_args_len, |
60 intptr_t num_arguments, | 62 intptr_t num_arguments, |
61 const Array& argument_names); | 63 const Array& argument_names); |
62 | 64 |
63 // Resolve specified dart static function with specified arity. Resolves both | 65 // Resolve specified dart static function with specified arity. Resolves both |
64 // public and private functions. | 66 // public and private functions. |
65 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, | 67 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, |
66 const String& function_name, | 68 const String& function_name, |
| 69 intptr_t type_args_len, |
67 intptr_t num_arguments, | 70 intptr_t num_arguments, |
68 const Array& argument_names); | 71 const Array& argument_names); |
69 }; | 72 }; |
70 | 73 |
71 } // namespace dart | 74 } // namespace dart |
72 | 75 |
73 #endif // RUNTIME_VM_RESOLVER_H_ | 76 #endif // RUNTIME_VM_RESOLVER_H_ |
OLD | NEW |