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

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

Issue 10175011: Rework mirrors implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static RawObject* ToString(const Instance& receiver); 71 static RawObject* ToString(const Instance& receiver);
72 72
73 // On success, returns a RawInstance. On failure, a RawError. 73 // On success, returns a RawInstance. On failure, a RawError.
74 static RawObject* Equals(const Instance& left, const Instance& right); 74 static RawObject* Equals(const Instance& left, const Instance& right);
75 75
76 // Returns null on success, a RawError on failure. 76 // Returns null on success, a RawError on failure.
77 static RawObject* HandleMessage(Dart_Port dest_port_id, 77 static RawObject* HandleMessage(Dart_Port dest_port_id,
78 Dart_Port reply_port_id, 78 Dart_Port reply_port_id,
79 const Instance& dart_message); 79 const Instance& dart_message);
80 80
81 // Returns null on success, a RawError on failure.
82 static RawObject* HandleMirrorsMessage(Dart_Port dest_port_id,
83 Dart_Port reply_port_id,
84 const Instance& dart_message);
85
86 // On success returns new SendPort, on failure returns a RawError. 81 // On success returns new SendPort, on failure returns a RawError.
87 static RawObject* NewSendPort(intptr_t port_id); 82 static RawObject* NewSendPort(intptr_t port_id);
88 83
89 // map[key] = value; 84 // map[key] = value;
90 // 85 //
91 // Returns null on success, a RawError on failure. 86 // Returns null on success, a RawError on failure.
92 static RawObject* MapSetAt(const Instance& map, 87 static RawObject* MapSetAt(const Instance& map,
93 const Instance& key, 88 const Instance& key,
94 const Instance& value); 89 const Instance& value);
95 90
96 // Gets the _id field of a SendPort/ReceivePort. 91 // Gets the _id field of a SendPort/ReceivePort.
97 // 92 //
98 // Returns null on success, a RawError on failure. 93 // Returns null on success, a RawError on failure.
99 static RawObject* PortGetId(const Instance& port); 94 static RawObject* PortGetId(const Instance& port);
100 }; 95 };
101 96
102 } // namespace dart 97 } // namespace dart
103 98
104 #endif // VM_DART_ENTRY_H_ 99 #endif // VM_DART_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698