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

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

Issue 11636025: Simplify method invocation runtime entries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/code_generator.cc ('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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // On success, returns a RawInstance. On failure, a RawError. 121 // On success, returns a RawInstance. On failure, a RawError.
122 // This is used when there are no named arguments in the call. 122 // This is used when there are no named arguments in the call.
123 static RawObject* InvokeClosure(const Instance& closure, 123 static RawObject* InvokeClosure(const Instance& closure,
124 const Array& arguments); 124 const Array& arguments);
125 125
126 // Invoke the specified closure object. 126 // Invoke the specified closure object.
127 // On success, returns a RawInstance. On failure, a RawError. 127 // On success, returns a RawInstance. On failure, a RawError.
128 static RawObject* InvokeClosure(const Instance& closure, 128 static RawObject* InvokeClosure(const Instance& closure,
129 const Array& arguments, 129 const Array& arguments,
130 const Array& arguments_descriptor); 130 const Array& arguments_descriptor);
131
132 // Invoke the noSuchMethod instance function on the receiver.
133 // On success, returns a RawInstance. On failure, a RawError.
134 static RawObject* InvokeNoSuchMethod(const Instance& receiver,
135 const String& target_name,
136 const Array& arguments,
137 const Array& arguments_descriptor);
131 }; 138 };
132 139
133 140
134 // Utility functions to call from VM into Dart bootstrap libraries. 141 // Utility functions to call from VM into Dart bootstrap libraries.
135 // Each may return an exception object. 142 // Each may return an exception object.
136 class DartLibraryCalls : public AllStatic { 143 class DartLibraryCalls : public AllStatic {
137 public: 144 public:
138 // On success, returns a RawInstance. On failure, a RawError. 145 // On success, returns a RawInstance. On failure, a RawError.
139 static RawObject* ExceptionCreate(const Library& library, 146 static RawObject* ExceptionCreate(const Library& library,
140 const String& exception_name, 147 const String& exception_name,
(...skipping 22 matching lines...) Expand all
163 170
164 // Gets the _id field of a SendPort/ReceivePort. 171 // Gets the _id field of a SendPort/ReceivePort.
165 // 172 //
166 // Returns the value of _id on success, a RawError on failure. 173 // Returns the value of _id on success, a RawError on failure.
167 static RawObject* PortGetId(const Instance& port); 174 static RawObject* PortGetId(const Instance& port);
168 }; 175 };
169 176
170 } // namespace dart 177 } // namespace dart
171 178
172 #endif // VM_DART_ENTRY_H_ 179 #endif // VM_DART_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698