Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 14828006: Minor cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698