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

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 1762)
+++ runtime/vm/isolate.cc (working copy)
@@ -37,6 +37,7 @@
post_message_callback_(NULL),
close_port_callback_(NULL),
active_ports_(0),
+ main_port_(0),
heap_(NULL),
object_store_(NULL),
top_resource_(NULL),
@@ -125,6 +126,7 @@
// TODO(5411455): Need to figure out how to set the stack limit for the
// main thread.
result->SetStackLimitFromCurrentTOS(reinterpret_cast<uword>(&result));
+ result->set_main_port(PortMap::CreatePort());
return result;
}
@@ -241,7 +243,7 @@
ASSERT(post_message_callback() == &StandardPostMessageCallback);
ASSERT(close_port_callback() == &StandardClosePortCallback);
- while (active_ports() > 0) {
+ while (Dart_IsolateHasActivePorts()) {
ASSERT(this == Isolate::Current());
Zone zone(this);
HandleScope handle_scope(this);
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/isolate.h ('k') | runtime/vm/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698