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

Side by Side Diff: runtime/vm/dart_entry.h

Issue 23604003: Support named and optional positional arguments in reflective invocation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix wrong variable in async unwrap error message Created 7 years, 3 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_natives.h ('k') | runtime/vm/dart_entry.cc » ('j') | 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) 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 #ifndef VM_DART_ENTRY_H_ 5 #ifndef VM_DART_ENTRY_H_
6 #define VM_DART_ENTRY_H_ 6 #define VM_DART_ENTRY_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // On success, returns a RawInstance. On failure, a RawError. 135 // On success, returns a RawInstance. On failure, a RawError.
136 static RawObject* InvokeClosure(const Array& arguments, 136 static RawObject* InvokeClosure(const Array& arguments,
137 const Array& arguments_descriptor); 137 const Array& arguments_descriptor);
138 138
139 // Invokes the noSuchMethod instance function on the receiver. 139 // Invokes the noSuchMethod instance function on the receiver.
140 // On success, returns a RawInstance. On failure, a RawError. 140 // On success, returns a RawInstance. On failure, a RawError.
141 static RawObject* InvokeNoSuchMethod(const Instance& receiver, 141 static RawObject* InvokeNoSuchMethod(const Instance& receiver,
142 const String& target_name, 142 const String& target_name,
143 const Array& arguments, 143 const Array& arguments,
144 const Array& arguments_descriptor); 144 const Array& arguments_descriptor);
145
146 // Invokes a generative constructor, redirecting constructor, factory or
147 // redirecting factory. On success, returns a RawInstance. On failure,
148 // a RawError.
149 static RawObject* InvokeConstructor(const Class& klass,
150 const Function &constructor,
151 const Array& arguments);
152 }; 145 };
153 146
154 147
155 // Utility functions to call from VM into Dart bootstrap libraries. 148 // Utility functions to call from VM into Dart bootstrap libraries.
156 // Each may return an exception object. 149 // Each may return an exception object.
157 class DartLibraryCalls : public AllStatic { 150 class DartLibraryCalls : public AllStatic {
158 public: 151 public:
159 // On success, returns a RawInstance. On failure, a RawError. 152 // On success, returns a RawInstance. On failure, a RawError.
160 static RawObject* InstanceCreate(const Library& library, 153 static RawObject* InstanceCreate(const Library& library,
161 const String& exception_name, 154 const String& exception_name,
(...skipping 27 matching lines...) Expand all
189 182
190 // Gets the _id field of a SendPort/ReceivePort. 183 // Gets the _id field of a SendPort/ReceivePort.
191 // 184 //
192 // Returns the value of _id on success, a RawError on failure. 185 // Returns the value of _id on success, a RawError on failure.
193 static RawObject* PortGetId(const Instance& port); 186 static RawObject* PortGetId(const Instance& port);
194 }; 187 };
195 188
196 } // namespace dart 189 } // namespace dart
197 190
198 #endif // VM_DART_ENTRY_H_ 191 #endif // VM_DART_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698