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

Unified Diff: runtime/lib/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 | « no previous file | runtime/vm/allocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate.cc
===================================================================
--- runtime/lib/isolate.cc (revision 1496)
+++ runtime/lib/isolate.cc (working copy)
@@ -146,8 +146,8 @@
LongJump jump;
isolate->set_long_jump_base(&jump);
if (setjmp(*jump.Set()) == 0) {
- Zone zone;
- HandleScope handle_scope;
+ Zone zone(isolate);
+ HandleScope handle_scope(isolate);
ASSERT(ClassFinalizer::FinalizePendingClasses());
// Lookup the target class by name, create an instance and call the run
// method.
@@ -206,8 +206,8 @@
isolate->StandardRunLoop();
} else {
- Zone zone;
- HandleScope handle_scope;
+ Zone zone(isolate);
+ HandleScope handle_scope(isolate);
const String& error = String::Handle(
Isolate::Current()->object_store()->sticky_error());
const char* errmsg = error.ToCString();
@@ -220,8 +220,9 @@
static bool CheckArguments(const char* library_url, const char* class_name) {
- Zone zone;
- HandleScope handle_scope;
+ Isolate* isolate = Isolate::Current();
+ Zone zone(isolate);
+ HandleScope handle_scope(isolate);
String& name = String::Handle();
if (!ClassFinalizer::FinalizePendingClasses()) {
return false;
@@ -289,8 +290,8 @@
// Make sure to grab the error message out of the isolate before it has
// been shutdown and to allocate it in the preserved isolates zone.
{
- Zone zone;
- HandleScope scope;
+ Zone zone(spawned_isolate);
+ HandleScope scope(spawned_isolate);
const String& error = String::Handle(
spawned_isolate->object_store()->sticky_error());
const char* temp_error_msg = error.ToCString();
« no previous file with comments | « no previous file | runtime/vm/allocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698