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

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

Issue 2005723004: Fraction class prototype and test (not to be committed). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: work in progress Created 4 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
« no previous file with comments | « runtime/vm/clustered_snapshot.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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 157
158 // Utility functions to call from VM into Dart bootstrap libraries. 158 // Utility functions to call from VM into Dart bootstrap libraries.
159 // Each may return an exception object. 159 // Each may return an exception object.
160 class DartLibraryCalls : public AllStatic { 160 class DartLibraryCalls : public AllStatic {
161 public: 161 public:
162 // On success, returns a RawInstance. On failure, a RawError. 162 // On success, returns a RawInstance. On failure, a RawError.
163 static RawObject* InstanceCreate(const Library& library, 163 static RawObject* InstanceCreate(const Library& library,
164 const String& exception_name, 164 const String& exception_name,
165 const String& constructor_name, 165 const String& constructor_name,
166 bool factory,
166 const Array& arguments); 167 const Array& arguments);
167 168
168 // On success, returns a RawInstance. On failure, a RawError. 169 // On success, returns a RawInstance. On failure, a RawError.
169 static RawObject* ToString(const Instance& receiver); 170 static RawObject* ToString(const Instance& receiver);
170 171
171 // On success, returns a RawInstance. On failure, a RawError. 172 // On success, returns a RawInstance. On failure, a RawError.
172 static RawObject* HashCode(const Instance& receiver); 173 static RawObject* HashCode(const Instance& receiver);
173 174
174 // On success, returns a RawInstance. On failure, a RawError. 175 // On success, returns a RawInstance. On failure, a RawError.
175 static RawObject* Equals(const Instance& left, const Instance& right); 176 static RawObject* Equals(const Instance& left, const Instance& right);
(...skipping 12 matching lines...) Expand all
188 // 189 //
189 // Returns null on success, a RawError on failure. 190 // Returns null on success, a RawError on failure.
190 static RawObject* MapSetAt(const Instance& map, 191 static RawObject* MapSetAt(const Instance& map,
191 const Instance& key, 192 const Instance& key,
192 const Instance& value); 193 const Instance& value);
193 }; 194 };
194 195
195 } // namespace dart 196 } // namespace dart
196 197
197 #endif // VM_DART_ENTRY_H_ 198 #endif // VM_DART_ENTRY_H_
OLDNEW
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698