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 #include "vm/resolver.h" | 5 #include "vm/resolver.h" |
6 | 6 |
7 #include "vm/dart_entry.h" | 7 #include "vm/dart_entry.h" |
8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
10 #include "vm/log.h" | 10 #include "vm/log.h" |
11 #include "vm/object.h" | 11 #include "vm/object.h" |
12 #include "vm/object_store.h" | 12 #include "vm/object_store.h" |
13 #include "vm/symbols.h" | 13 #include "vm/symbols.h" |
14 | 14 |
15 namespace dart { | 15 namespace dart { |
16 | 16 |
17 DEFINE_FLAG(bool, trace_resolving, false, "Trace resolving."); | 17 DEFINE_FLAG(bool, trace_resolving, false, "Trace resolving."); |
18 DECLARE_FLAG(bool, lazy_dispatchers); | |
19 | 18 |
20 // The actual names of named arguments are not checked by the dynamic resolver, | 19 // The actual names of named arguments are not checked by the dynamic resolver, |
21 // but by the method entry code. It is important that the dynamic resolver | 20 // but by the method entry code. It is important that the dynamic resolver |
22 // checks that no named arguments are passed to a method that does not accept | 21 // checks that no named arguments are passed to a method that does not accept |
23 // them, since the entry code of such a method does not check for named | 22 // them, since the entry code of such a method does not check for named |
24 // arguments. The dynamic resolver actually checks that a valid number of named | 23 // arguments. The dynamic resolver actually checks that a valid number of named |
25 // arguments is passed in. | 24 // arguments is passed in. |
26 RawFunction* Resolver::ResolveDynamic(const Instance& receiver, | 25 RawFunction* Resolver::ResolveDynamic(const Instance& receiver, |
27 const String& function_name, | 26 const String& function_name, |
28 const ArgumentsDescriptor& args_desc) { | 27 const ArgumentsDescriptor& args_desc) { |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 THR_Print("ResolveStaticAllowPrivate error '%s': %s.\n", | 252 THR_Print("ResolveStaticAllowPrivate error '%s': %s.\n", |
254 function_name.ToCString(), | 253 function_name.ToCString(), |
255 error_message.ToCString()); | 254 error_message.ToCString()); |
256 } | 255 } |
257 return Function::null(); | 256 return Function::null(); |
258 } | 257 } |
259 return function.raw(); | 258 return function.raw(); |
260 } | 259 } |
261 | 260 |
262 } // namespace dart | 261 } // namespace dart |
OLD | NEW |