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

Unified Diff: runtime/vm/isolate.cc

Issue 8588040: Add a mid-sized integration test for the Dart Embedding Api which (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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.cc
===================================================================
--- runtime/vm/isolate.cc (revision 1518)
+++ runtime/vm/isolate.cc (working copy)
@@ -34,6 +34,7 @@
Isolate::Isolate()
: store_buffer_(),
message_queue_(NULL),
+ create_port_callback_(NULL),
post_message_callback_(NULL),
close_port_callback_(NULL),
active_ports_(0),
@@ -75,6 +76,12 @@
}
+static void StandardCreatePortCallback(Dart_Isolate dart_isolate,
+ Dart_Port port) {
+ // Do nothing.
+}
+
+
static bool StandardPostMessageCallback(Dart_Isolate dart_isolate,
Dart_Port dest_port,
Dart_Port reply_port,
@@ -112,6 +119,7 @@
MessageQueue* queue = new MessageQueue();
ASSERT(queue != NULL);
result->set_message_queue(queue);
+ result->set_create_port_callback(&StandardCreatePortCallback);
result->set_post_message_callback(&StandardPostMessageCallback);
result->set_close_port_callback(&StandardClosePortCallback);

Powered by Google App Engine
This is Rietveld 408576698