| 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 VM_RESOLVER_H_ | 5 #ifndef VM_RESOLVER_H_ |
| 6 #define VM_RESOLVER_H_ | 6 #define VM_RESOLVER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Otherwise null is returned if the number or names of arguments are not | 46 // Otherwise null is returned if the number or names of arguments are not |
| 47 // valid for the resolved function. | 47 // valid for the resolved function. |
| 48 static RawFunction* ResolveStatic(const Library& library, | 48 static RawFunction* ResolveStatic(const Library& library, |
| 49 const String& cls_name, | 49 const String& cls_name, |
| 50 const String& function_name, | 50 const String& function_name, |
| 51 int num_arguments, | 51 int num_arguments, |
| 52 const Array& argument_names, | 52 const Array& argument_names, |
| 53 StaticResolveType resolve_type); | 53 StaticResolveType resolve_type); |
| 54 | 54 |
| 55 // Resolve specified dart static function. | 55 // Resolve specified dart static function. |
| 56 static RawFunction* ResolveStaticByName(const Class& cls, |
| 57 const String& function_name, |
| 58 StaticResolveType resolve_type); |
| 59 |
| 60 // Resolve specified dart static function with specified arity. |
| 56 static RawFunction* ResolveStatic(const Class& cls, | 61 static RawFunction* ResolveStatic(const Class& cls, |
| 57 const String& function_name, | 62 const String& function_name, |
| 58 int num_arguments, | 63 int num_arguments, |
| 59 const Array& argument_names, | 64 const Array& argument_names, |
| 60 StaticResolveType resolve_type); | 65 StaticResolveType resolve_type); |
| 61 }; | 66 }; |
| 62 | 67 |
| 63 } // namespace dart | 68 } // namespace dart |
| 64 | 69 |
| 65 #endif // VM_RESOLVER_H_ | 70 #endif // VM_RESOLVER_H_ |
| OLD | NEW |