| 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 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 Loading... |
| 156 // On success, returns a RawInstance. On failure, a RawError. | 156 // On success, returns a RawInstance. On failure, a RawError. |
| 157 static RawObject* Equals(const Instance& left, const Instance& right); | 157 static RawObject* Equals(const Instance& left, const Instance& right); |
| 158 | 158 |
| 159 // Returns the handler if one has been registered for this port id. | 159 // Returns the handler if one has been registered for this port id. |
| 160 static RawObject* LookupHandler(Dart_Port port_id); | 160 static RawObject* LookupHandler(Dart_Port port_id); |
| 161 | 161 |
| 162 // Returns null on success, a RawError on failure. | 162 // Returns null on success, a RawError on failure. |
| 163 static RawObject* HandleMessage(const Object& handler, | 163 static RawObject* HandleMessage(const Object& handler, |
| 164 const Instance& dart_message); | 164 const Instance& dart_message); |
| 165 | 165 |
| 166 // Returns null on success, a RawError on failure. |
| 167 static RawObject* DrainMicrotaskQueue(); |
| 168 |
| 166 // map[key] = value; | 169 // map[key] = value; |
| 167 // | 170 // |
| 168 // Returns null on success, a RawError on failure. | 171 // Returns null on success, a RawError on failure. |
| 169 static RawObject* MapSetAt(const Instance& map, | 172 static RawObject* MapSetAt(const Instance& map, |
| 170 const Instance& key, | 173 const Instance& key, |
| 171 const Instance& value); | 174 const Instance& value); |
| 172 }; | 175 }; |
| 173 | 176 |
| 174 } // namespace dart | 177 } // namespace dart |
| 175 | 178 |
| 176 #endif // VM_DART_ENTRY_H_ | 179 #endif // VM_DART_ENTRY_H_ |
| OLD | NEW |