| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // If 'allow_add' is true we may add a function to the class during lookup. | 31 // If 'allow_add' is true we may add a function to the class during lookup. |
| 32 static RawFunction* ResolveDynamicForReceiverClass( | 32 static RawFunction* ResolveDynamicForReceiverClass( |
| 33 const Class& receiver_class, | 33 const Class& receiver_class, |
| 34 const String& function_name, | 34 const String& function_name, |
| 35 const ArgumentsDescriptor& args_desc, | 35 const ArgumentsDescriptor& args_desc, |
| 36 bool allow_add = true); | 36 bool allow_add = true); |
| 37 | 37 |
| 38 // If 'allow_add' is true we may add a function to the class during lookup. | 38 // If 'allow_add' is true we may add a function to the class during lookup. |
| 39 static RawFunction* ResolveDynamicAnyArgs( | 39 static RawFunction* ResolveDynamicAnyArgs( |
| 40 Zone* zone, |
| 40 const Class& receiver_class, | 41 const Class& receiver_class, |
| 41 const String& function_name, | 42 const String& function_name, |
| 42 bool allow_add = true); | 43 bool allow_add = true); |
| 43 | 44 |
| 44 // Resolve specified dart static function. If library.IsNull, use | 45 // Resolve specified dart static function. If library.IsNull, use |
| 45 // either application library or core library if no application library | 46 // either application library or core library if no application library |
| 46 // exists. Passing negative num_arguments means that the function | 47 // exists. Passing negative num_arguments means that the function |
| 47 // will be resolved by name only. | 48 // will be resolved by name only. |
| 48 // Otherwise null is returned if the number or names of arguments are not | 49 // Otherwise null is returned if the number or names of arguments are not |
| 49 // valid for the resolved function. | 50 // valid for the resolved function. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 64 // public and private functions. | 65 // public and private functions. |
| 65 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, | 66 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, |
| 66 const String& function_name, | 67 const String& function_name, |
| 67 intptr_t num_arguments, | 68 intptr_t num_arguments, |
| 68 const Array& argument_names); | 69 const Array& argument_names); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace dart | 72 } // namespace dart |
| 72 | 73 |
| 73 #endif // VM_RESOLVER_H_ | 74 #endif // VM_RESOLVER_H_ |
| OLD | NEW |