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

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

Issue 1299493007: Rework service extensions to be safe (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698