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

Unified Diff: runtime/vm/isolate.cc

Issue 8528010: Changes to pass the current isolate to all runtime and native calls. (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/heap.cc ('k') | runtime/vm/native_arguments.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 1496)
+++ runtime/vm/isolate.cc (working copy)
@@ -162,8 +162,9 @@
void Isolate::PrintInvokedFunctions() {
- Zone zone;
- HandleScope handle_scope;
+ ASSERT(this == Isolate::Current());
+ Zone zone(this);
+ HandleScope handle_scope(this);
Library& library = Library::Handle();
library = object_store()->registered_libraries();
GrowableArray<const Function*> invoked_functions;
@@ -241,8 +242,9 @@
ASSERT(close_port_callback() == &StandardClosePortCallback);
while (active_ports() > 0) {
- Zone zone;
- HandleScope handle_scope;
+ ASSERT(this == Isolate::Current());
+ Zone zone(this);
+ HandleScope handle_scope(this);
PortMessage* message = message_queue()->Dequeue(0);
if (message != NULL) {
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/native_arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698