| 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 { |
| 11 | 11 |
| 12 // Forward declarations. | 12 // Forward declarations. |
| 13 class Array; | 13 class Array; |
| 14 class Class; | 14 class Class; |
| 15 class Instance; | 15 class Instance; |
| 16 class Library; | 16 class Library; |
| 17 class RawFunction; | 17 class RawFunction; |
| 18 class String; | 18 class String; |
| 19 class ArgumentsDescriptor; | 19 class ArgumentsDescriptor; |
| 20 | 20 |
| 21 | |
| 22 // Resolver abstracts functionality needed to resolve dart functions at | 21 // Resolver abstracts functionality needed to resolve dart functions at |
| 23 // invocations. | 22 // invocations. |
| 24 class Resolver : public AllStatic { | 23 class Resolver : public AllStatic { |
| 25 public: | 24 public: |
| 26 // Resolve specified dart instance function. | 25 // Resolve specified dart instance function. |
| 27 static RawFunction* ResolveDynamic(const Instance& receiver, | 26 static RawFunction* ResolveDynamic(const Instance& receiver, |
| 28 const String& function_name, | 27 const String& function_name, |
| 29 const ArgumentsDescriptor& args_desc); | 28 const ArgumentsDescriptor& args_desc); |
| 30 | 29 |
| 31 // If 'allow_add' is true we may add a function to the class during lookup. | 30 // If 'allow_add' is true we may add a function to the class during lookup. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, | 66 static RawFunction* ResolveStaticAllowPrivate(const Class& cls, |
| 68 const String& function_name, | 67 const String& function_name, |
| 69 intptr_t type_args_len, | 68 intptr_t type_args_len, |
| 70 intptr_t num_arguments, | 69 intptr_t num_arguments, |
| 71 const Array& argument_names); | 70 const Array& argument_names); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace dart | 73 } // namespace dart |
| 75 | 74 |
| 76 #endif // RUNTIME_VM_RESOLVER_H_ | 75 #endif // RUNTIME_VM_RESOLVER_H_ |
| OLD | NEW |