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/object.h" | 10 #include "vm/object.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Initialize signature: receiver is a single fixed parameter. | 84 // Initialize signature: receiver is a single fixed parameter. |
85 const intptr_t kNumParameters = 1; | 85 const intptr_t kNumParameters = 1; |
86 extractor.set_num_fixed_parameters(kNumParameters); | 86 extractor.set_num_fixed_parameters(kNumParameters); |
87 extractor.SetNumOptionalParameters(0, 0); | 87 extractor.SetNumOptionalParameters(0, 0); |
88 extractor.set_parameter_types(Object::extractor_parameter_types()); | 88 extractor.set_parameter_types(Object::extractor_parameter_types()); |
89 extractor.set_parameter_names(Object::extractor_parameter_names()); | 89 extractor.set_parameter_names(Object::extractor_parameter_names()); |
90 extractor.set_result_type(Type::Handle(Type::DynamicType())); | 90 extractor.set_result_type(Type::Handle(Type::DynamicType())); |
91 | 91 |
92 extractor.set_extracted_method_closure(closure_function); | 92 extractor.set_extracted_method_closure(closure_function); |
93 extractor.set_is_debuggable(false); | 93 extractor.set_is_debuggable(false); |
| 94 extractor.set_is_visible(false); |
94 | 95 |
95 owner.AddFunction(extractor); | 96 owner.AddFunction(extractor); |
96 | 97 |
97 return extractor.raw(); | 98 return extractor.raw(); |
98 } | 99 } |
99 | 100 |
100 | 101 |
101 RawFunction* Resolver::ResolveDynamicAnyArgs( | 102 RawFunction* Resolver::ResolveDynamicAnyArgs( |
102 const Class& receiver_class, | 103 const Class& receiver_class, |
103 const String& function_name) { | 104 const String& function_name) { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 OS::Print("ResolveStaticAllowPrivate error '%s': %s.\n", | 248 OS::Print("ResolveStaticAllowPrivate error '%s': %s.\n", |
248 function_name.ToCString(), | 249 function_name.ToCString(), |
249 error_message.ToCString()); | 250 error_message.ToCString()); |
250 } | 251 } |
251 return Function::null(); | 252 return Function::null(); |
252 } | 253 } |
253 return function.raw(); | 254 return function.raw(); |
254 } | 255 } |
255 | 256 |
256 } // namespace dart | 257 } // namespace dart |
OLD | NEW |