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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // On success, returns a RawInstance. On failure, a RawError. | 68 // On success, returns a RawInstance. On failure, a RawError. |
69 static RawObject* ToString(const Instance& receiver); | 69 static RawObject* ToString(const Instance& receiver); |
70 | 70 |
71 // On success, returns a RawInstance. On failure, a RawError. | 71 // On success, returns a RawInstance. On failure, a RawError. |
72 static RawObject* Equals(const Instance& left, const Instance& right); | 72 static RawObject* Equals(const Instance& left, const Instance& right); |
73 | 73 |
74 // Returns null on success, a RawError on failure. | 74 // Returns null on success, a RawError on failure. |
75 static RawObject* HandleMessage(Dart_Port dest_port_id, | 75 static RawObject* HandleMessage(Dart_Port dest_port_id, |
76 Dart_Port reply_port_id, | 76 Dart_Port reply_port_id, |
77 const Instance& dart_message); | 77 const Instance& dart_message); |
| 78 |
| 79 // Returns null on success, a RawError on failure. |
| 80 static RawObject* HandleMirrorsMessage(Dart_Port dest_port_id, |
| 81 Dart_Port reply_port_id, |
| 82 const Instance& dart_message); |
| 83 |
| 84 // On success returns new SendPort, on failure returns a RawError. |
| 85 static RawObject* NewSendPort(intptr_t port_id); |
| 86 |
| 87 // map[key] = value; |
| 88 // |
| 89 // Returns null on success, a RawError on failure. |
| 90 static RawObject* MapSetAt(const Instance& map, |
| 91 const Instance& key, |
| 92 const Instance& value); |
| 93 |
| 94 // Gets the _id field of a SendPort/ReceivePort. |
| 95 // |
| 96 // Returns null on success, a RawError on failure. |
| 97 static RawObject* PortGetId(const Instance& port); |
78 }; | 98 }; |
79 | 99 |
80 } // namespace dart | 100 } // namespace dart |
81 | 101 |
82 #endif // VM_DART_ENTRY_H_ | 102 #endif // VM_DART_ENTRY_H_ |
OLD | NEW |