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

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

Issue 12328019: - Improve the message for NoSuchMethodErrors that are (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 }; 150 };
151 151
152 152
153 // Utility functions to call from VM into Dart bootstrap libraries. 153 // Utility functions to call from VM into Dart bootstrap libraries.
154 // Each may return an exception object. 154 // Each may return an exception object.
155 class DartLibraryCalls : public AllStatic { 155 class DartLibraryCalls : public AllStatic {
156 public: 156 public:
157 // On success, returns a RawInstance. On failure, a RawError. 157 // On success, returns a RawInstance. On failure, a RawError.
158 static RawObject* ExceptionCreate(const Library& library, 158 static RawObject* ExceptionCreate(const Library& library,
159 const String& exception_name, 159 const String& exception_name,
160 const String& constructor_name,
160 const Array& arguments); 161 const Array& arguments);
161 162
162 // On success, returns a RawInstance. On failure, a RawError. 163 // On success, returns a RawInstance. On failure, a RawError.
163 static RawObject* ToString(const Instance& receiver); 164 static RawObject* ToString(const Instance& receiver);
164 165
165 // On success, returns a RawInstance. On failure, a RawError. 166 // On success, returns a RawInstance. On failure, a RawError.
166 static RawObject* Equals(const Instance& left, const Instance& right); 167 static RawObject* Equals(const Instance& left, const Instance& right);
167 168
168 // Returns the receive port if it is in the port map and null otherwise. 169 // Returns the receive port if it is in the port map and null otherwise.
169 // On failure, a RawError. 170 // On failure, a RawError.
(...skipping 16 matching lines...) Expand all
186 187
187 // Gets the _id field of a SendPort/ReceivePort. 188 // Gets the _id field of a SendPort/ReceivePort.
188 // 189 //
189 // Returns the value of _id on success, a RawError on failure. 190 // Returns the value of _id on success, a RawError on failure.
190 static RawObject* PortGetId(const Instance& port); 191 static RawObject* PortGetId(const Instance& port);
191 }; 192 };
192 193
193 } // namespace dart 194 } // namespace dart
194 195
195 #endif // VM_DART_ENTRY_H_ 196 #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