OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
6 | 6 |
7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
9 #include "vm/exceptions.h" | 9 #include "vm/exceptions.h" |
10 #include "vm/native_entry.h" | 10 #include "vm/native_entry.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 fun_name, | 37 fun_name, |
38 args_desc.Count(), | 38 args_desc.Count(), |
39 args_desc.NamedCount())); | 39 args_desc.NamedCount())); |
40 Object& result = Object::Handle(); | 40 Object& result = Object::Handle(); |
41 if (function.IsNull()) { | 41 if (function.IsNull()) { |
42 result = DartEntry::InvokeNoSuchMethod(receiver, | 42 result = DartEntry::InvokeNoSuchMethod(receiver, |
43 fun_name, | 43 fun_name, |
44 invoke_arguments, | 44 invoke_arguments, |
45 fun_args_desc); | 45 fun_args_desc); |
46 } else { | 46 } else { |
47 result = DartEntry::InvokeDynamic(function, | 47 result = DartEntry::InvokeFunction(function, |
48 invoke_arguments, | 48 invoke_arguments, |
49 fun_args_desc); | 49 fun_args_desc); |
50 } | 50 } |
51 if (result.IsError()) { | 51 if (result.IsError()) { |
52 Exceptions::PropagateError(Error::Cast(result)); | 52 Exceptions::PropagateError(Error::Cast(result)); |
53 } | 53 } |
54 return result.raw(); | 54 return result.raw(); |
55 } | 55 } |
56 | 56 |
57 } // namespace dart | 57 } // namespace dart |
OLD | NEW |