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

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
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 1904)
+++ runtime/vm/isolate.cc (working copy)
@@ -36,7 +36,9 @@
message_queue_(NULL),
post_message_callback_(NULL),
close_port_callback_(NULL),
- active_ports_(0),
+ num_ports_(0),
+ live_ports_(0),
+ main_port_(0),
heap_(NULL),
object_store_(NULL),
top_resource_(NULL),
@@ -125,6 +127,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 +244,7 @@
ASSERT(post_message_callback() == &StandardPostMessageCallback);
ASSERT(close_port_callback() == &StandardClosePortCallback);
- while (active_ports() > 0) {
+ while (live_ports() > 0) {
ASSERT(this == Isolate::Current());
Zone zone(this);
HandleScope handle_scope(this);
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698