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

Unified Diff: runtime/vm/dart.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/code_generator_ia32.cc ('k') | runtime/vm/dart_api_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
===================================================================
--- runtime/vm/dart.cc (revision 1496)
+++ runtime/vm/dart.cc (working copy)
@@ -37,8 +37,8 @@
{
ASSERT(vm_isolate_ == NULL);
vm_isolate_ = Isolate::Init();
- Zone zone;
- HandleScope handle_scope;
+ Zone zone(vm_isolate_);
+ HandleScope handle_scope(vm_isolate_);
Heap::Init(vm_isolate_);
ObjectStore::Init(vm_isolate_);
Object::InitOnce();
@@ -64,8 +64,8 @@
// Initialize the new isolate.
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
- Zone zone;
- HandleScope handle_scope;
+ Zone zone(isolate);
+ HandleScope handle_scope(isolate);
Heap::Init(isolate);
ObjectStore::Init(isolate);
« no previous file with comments | « runtime/vm/code_generator_ia32.cc ('k') | runtime/vm/dart_api_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698