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

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

Issue 19678024: Rename: DartLibraryCalls::ExceptionCreate -> InstanceCreate (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | « no previous file | 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 const Function &constructor, 150 const Function &constructor,
151 const Array& arguments); 151 const Array& arguments);
152 }; 152 };
153 153
154 154
155 // Utility functions to call from VM into Dart bootstrap libraries. 155 // Utility functions to call from VM into Dart bootstrap libraries.
156 // Each may return an exception object. 156 // Each may return an exception object.
157 class DartLibraryCalls : public AllStatic { 157 class DartLibraryCalls : public AllStatic {
158 public: 158 public:
159 // On success, returns a RawInstance. On failure, a RawError. 159 // On success, returns a RawInstance. On failure, a RawError.
160 static RawObject* ExceptionCreate(const Library& library, 160 static RawObject* InstanceCreate(const Library& library,
161 const String& exception_name, 161 const String& exception_name,
162 const String& constructor_name, 162 const String& constructor_name,
163 const Array& arguments); 163 const Array& arguments);
164 164
165 // On success, returns a RawInstance. On failure, a RawError. 165 // On success, returns a RawInstance. On failure, a RawError.
166 static RawObject* ToString(const Instance& receiver); 166 static RawObject* ToString(const Instance& receiver);
167 167
168 // On success, returns a RawInstance. On failure, a RawError. 168 // On success, returns a RawInstance. On failure, a RawError.
169 static RawObject* Equals(const Instance& left, const Instance& right); 169 static RawObject* Equals(const Instance& left, const Instance& right);
170 170
171 // Returns the receive port if it is in the port map and null otherwise. 171 // Returns the receive port if it is in the port map and null otherwise.
172 // On failure, a RawError. 172 // On failure, a RawError.
173 static RawObject* LookupReceivePort(Dart_Port port_id); 173 static RawObject* LookupReceivePort(Dart_Port port_id);
(...skipping 15 matching lines...) Expand all
189 189
190 // Gets the _id field of a SendPort/ReceivePort. 190 // Gets the _id field of a SendPort/ReceivePort.
191 // 191 //
192 // Returns the value of _id on success, a RawError on failure. 192 // Returns the value of _id on success, a RawError on failure.
193 static RawObject* PortGetId(const Instance& port); 193 static RawObject* PortGetId(const Instance& port);
194 }; 194 };
195 195
196 } // namespace dart 196 } // namespace dart
197 197
198 #endif // VM_DART_ENTRY_H_ 198 #endif // VM_DART_ENTRY_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698