| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/bigint_operations.h" | 8 #include "vm/bigint_operations.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 3787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3798 } else { | 3798 } else { |
| 3799 return Api::NewError( | 3799 return Api::NewError( |
| 3800 "%s expects arguments[%d] to be an Instance handle.", | 3800 "%s expects arguments[%d] to be an Instance handle.", |
| 3801 CURRENT_FUNC, i); | 3801 CURRENT_FUNC, i); |
| 3802 } | 3802 } |
| 3803 } | 3803 } |
| 3804 args.SetAt((i + num_receiver), arg); | 3804 args.SetAt((i + num_receiver), arg); |
| 3805 } | 3805 } |
| 3806 | 3806 |
| 3807 if (obj.IsNull() || obj.IsInstance()) { | 3807 if (obj.IsNull() || obj.IsInstance()) { |
| 3808 Instance& instance = Instance::Handle(); | 3808 Instance& instance = Instance::Handle(isolate); |
| 3809 instance ^= obj.raw(); | 3809 instance ^= obj.raw(); |
| 3810 const Function& function = Function::Handle( | 3810 const Function& function = Function::Handle( |
| 3811 isolate, | 3811 isolate, |
| 3812 Resolver::ResolveDynamic(instance, | 3812 Resolver::ResolveDynamic(instance, |
| 3813 function_name, | 3813 function_name, |
| 3814 (number_of_arguments + 1), | 3814 (number_of_arguments + 1), |
| 3815 Resolver::kIsQualified)); | 3815 Resolver::kIsQualified)); |
| 3816 args.SetAt(0, instance); | 3816 args.SetAt(0, instance); |
| 3817 if (function.IsNull()) { | 3817 if (function.IsNull()) { |
| 3818 const Array& args_descriptor = | 3818 const Array& args_descriptor = |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4856 } | 4856 } |
| 4857 { | 4857 { |
| 4858 NoGCScope no_gc; | 4858 NoGCScope no_gc; |
| 4859 RawObject* raw_obj = obj.raw(); | 4859 RawObject* raw_obj = obj.raw(); |
| 4860 isolate->heap()->SetPeer(raw_obj, peer); | 4860 isolate->heap()->SetPeer(raw_obj, peer); |
| 4861 } | 4861 } |
| 4862 return Api::Success(isolate); | 4862 return Api::Success(isolate); |
| 4863 } | 4863 } |
| 4864 | 4864 |
| 4865 } // namespace dart | 4865 } // namespace dart |
| OLD | NEW |