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

Unified Diff: runtime/vm/isolate.h

Issue 8297004: Allow embedders to provide custom message delivery for an isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 510)
+++ runtime/vm/isolate.h (working copy)
@@ -46,9 +46,20 @@
StoreBufferBlock* store_buffer() { return &store_buffer_; }
- Monitor* monitor() const { return monitor_; }
- void set_monitor(Monitor* value) { monitor_ = value; }
+ Dart_PostMessageCallback post_message_callback() const {
Anton Muhin 2011/10/18 17:19:58 will you add a TODO to handle concurrent update of
turnidge 2011/10/18 17:33:40 I added a comment in dart_api.h declaiming respons
+ return post_message_callback_;
+ }
+ void set_post_message_callback(Dart_PostMessageCallback value) {
+ post_message_callback_ = value;
+ }
+ Dart_ClosePortCallback close_port_callback() const {
+ return close_port_callback_;
+ }
+ void set_close_port_callback(Dart_ClosePortCallback value) {
+ close_port_callback_ = value;
+ }
+
MessageQueue* message_queue() const { return message_queue_; }
void set_message_queue(MessageQueue* value) { message_queue_ = value; }
@@ -209,6 +220,8 @@
stack_limit_ = stack_limit_on_overflow_exception_;
}
+ void StandardRunLoop();
+
intptr_t ast_node_id() const { return ast_node_id_; }
void set_ast_node_id(int value) { ast_node_id_ = value; }
@@ -225,6 +238,8 @@
StoreBufferBlock store_buffer_;
Monitor* monitor_;
MessageQueue* message_queue_;
+ Dart_PostMessageCallback post_message_callback_;
+ Dart_ClosePortCallback close_port_callback_;
intptr_t active_ports_;
Heap* heap_;
ObjectStore* object_store_;

Powered by Google App Engine
This is Rietveld 408576698