| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // exists. Passing negative num_arguments means that the function | 42 // exists. Passing negative num_arguments means that the function |
| 43 // will be resolved by name only. | 43 // will be resolved by name only. |
| 44 // Otherwise null is returned if the number or names of arguments are not | 44 // Otherwise null is returned if the number or names of arguments are not |
| 45 // valid for the resolved function. | 45 // valid for the resolved function. |
| 46 static RawFunction* ResolveStatic(const Library& library, | 46 static RawFunction* ResolveStatic(const Library& library, |
| 47 const String& cls_name, | 47 const String& cls_name, |
| 48 const String& function_name, | 48 const String& function_name, |
| 49 intptr_t num_arguments, | 49 intptr_t num_arguments, |
| 50 const Array& argument_names); | 50 const Array& argument_names); |
| 51 | 51 |
| 52 // Resolve specified dart static function with specified arity. | 52 // Resolve specified dart static function with specified arity. Only resolves |
| 53 // public functions. |
| 53 static RawFunction* ResolveStatic(const Class& cls, | 54 static RawFunction* ResolveStatic(const Class& cls, |
| 54 const String& function_name, | 55 const String& function_name, |
| 55 intptr_t num_arguments, | 56 intptr_t num_arguments, |
| 56 const Array& argument_names); | 57 const Array& argument_names); |
| 58 |
| 59 // Resolve specified dart static function with specified arity. Resolves both |
| 60 // public and private functions. |
| 61 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, |
| 62 const String& function_name, |
| 63 intptr_t num_arguments, |
| 64 const Array& argument_names); |
| 57 }; | 65 }; |
| 58 | 66 |
| 59 } // namespace dart | 67 } // namespace dart |
| 60 | 68 |
| 61 #endif // VM_RESOLVER_H_ | 69 #endif // VM_RESOLVER_H_ |
| OLD | NEW |