OLD | NEW |
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 RUNTIME_VM_DART_ENTRY_H_ | 5 #ifndef RUNTIME_VM_DART_ENTRY_H_ |
6 #define RUNTIME_VM_DART_ENTRY_H_ | 6 #define RUNTIME_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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 // On success, returns a RawInstance. On failure, a RawError. | 177 // On success, returns a RawInstance. On failure, a RawError. |
178 static RawObject* ToString(const Instance& receiver); | 178 static RawObject* ToString(const Instance& receiver); |
179 | 179 |
180 // On success, returns a RawInstance. On failure, a RawError. | 180 // On success, returns a RawInstance. On failure, a RawError. |
181 static RawObject* HashCode(const Instance& receiver); | 181 static RawObject* HashCode(const Instance& receiver); |
182 | 182 |
183 // On success, returns a RawInstance. On failure, a RawError. | 183 // On success, returns a RawInstance. On failure, a RawError. |
184 static RawObject* Equals(const Instance& left, const Instance& right); | 184 static RawObject* Equals(const Instance& left, const Instance& right); |
185 | 185 |
186 // On success, returns a RawInstance. On failure, a RawError. | |
187 static RawObject* IdentityHashCode(const Instance& object); | |
188 | |
189 // Returns the handler if one has been registered for this port id. | 186 // Returns the handler if one has been registered for this port id. |
190 static RawObject* LookupHandler(Dart_Port port_id); | 187 static RawObject* LookupHandler(Dart_Port port_id); |
191 | 188 |
192 // Returns null on success, a RawError on failure. | 189 // Returns null on success, a RawError on failure. |
193 static RawObject* HandleMessage(const Object& handler, | 190 static RawObject* HandleMessage(const Object& handler, |
194 const Instance& dart_message); | 191 const Instance& dart_message); |
195 | 192 |
196 // Returns null on success, a RawError on failure. | 193 // Returns null on success, a RawError on failure. |
197 static RawObject* DrainMicrotaskQueue(); | 194 static RawObject* DrainMicrotaskQueue(); |
198 | 195 |
199 // map[key] = value; | 196 // map[key] = value; |
200 // | 197 // |
201 // Returns null on success, a RawError on failure. | 198 // Returns null on success, a RawError on failure. |
202 static RawObject* MapSetAt(const Instance& map, | 199 static RawObject* MapSetAt(const Instance& map, |
203 const Instance& key, | 200 const Instance& key, |
204 const Instance& value); | 201 const Instance& value); |
205 }; | 202 }; |
206 | 203 |
207 } // namespace dart | 204 } // namespace dart |
208 | 205 |
209 #endif // RUNTIME_VM_DART_ENTRY_H_ | 206 #endif // RUNTIME_VM_DART_ENTRY_H_ |
OLD | NEW |