| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // On success, returns a RawInstance. On failure, a RawError. | 152 // On success, returns a RawInstance. On failure, a RawError. |
| 153 static RawObject* InstanceCreate(const Library& library, | 153 static RawObject* InstanceCreate(const Library& library, |
| 154 const String& exception_name, | 154 const String& exception_name, |
| 155 const String& constructor_name, | 155 const String& constructor_name, |
| 156 const Array& arguments); | 156 const Array& arguments); |
| 157 | 157 |
| 158 // On success, returns a RawInstance. On failure, a RawError. | 158 // On success, returns a RawInstance. On failure, a RawError. |
| 159 static RawObject* ToString(const Instance& receiver); | 159 static RawObject* ToString(const Instance& receiver); |
| 160 | 160 |
| 161 // On success, returns a RawInstance. On failure, a RawError. | 161 // On success, returns a RawInstance. On failure, a RawError. |
| 162 static RawObject* HashCode(const Instance& receiver); |
| 163 |
| 164 // On success, returns a RawInstance. On failure, a RawError. |
| 162 static RawObject* Equals(const Instance& left, const Instance& right); | 165 static RawObject* Equals(const Instance& left, const Instance& right); |
| 163 | 166 |
| 164 // Returns the handler if one has been registered for this port id. | 167 // Returns the handler if one has been registered for this port id. |
| 165 static RawObject* LookupHandler(Dart_Port port_id); | 168 static RawObject* LookupHandler(Dart_Port port_id); |
| 166 | 169 |
| 167 // Returns null on success, a RawError on failure. | 170 // Returns null on success, a RawError on failure. |
| 168 static RawObject* HandleMessage(const Object& handler, | 171 static RawObject* HandleMessage(const Object& handler, |
| 169 const Instance& dart_message); | 172 const Instance& dart_message); |
| 170 | 173 |
| 171 // map[key] = value; | 174 // map[key] = value; |
| 172 // | 175 // |
| 173 // Returns null on success, a RawError on failure. | 176 // Returns null on success, a RawError on failure. |
| 174 static RawObject* MapSetAt(const Instance& map, | 177 static RawObject* MapSetAt(const Instance& map, |
| 175 const Instance& key, | 178 const Instance& key, |
| 176 const Instance& value); | 179 const Instance& value); |
| 177 }; | 180 }; |
| 178 | 181 |
| 179 } // namespace dart | 182 } // namespace dart |
| 180 | 183 |
| 181 #endif // VM_DART_ENTRY_H_ | 184 #endif // VM_DART_ENTRY_H_ |
| OLD | NEW |