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

Unified Diff: runtime/vm/isolate.cc

Issue 545483002: Per isolate package root. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed test. Created 6 years, 3 months 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') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 8f72360d139250661a35fe9fc637f5a31599d548..82b763c22cb03f62413a97244e0068449afbb9e7 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1442,6 +1442,7 @@ IsolateSpawnState::IsolateSpawnState(Dart_Port parent_port,
: isolate_(NULL),
parent_port_(parent_port),
script_url_(NULL),
+ package_root_(NULL),
library_url_(NULL),
class_name_(NULL),
function_name_(NULL),
@@ -1469,10 +1470,12 @@ IsolateSpawnState::IsolateSpawnState(Dart_Port parent_port,
IsolateSpawnState::IsolateSpawnState(Dart_Port parent_port,
const char* script_url,
+ const char* package_root,
const Instance& args,
const Instance& message)
: isolate_(NULL),
parent_port_(parent_port),
+ package_root_(NULL),
library_url_(NULL),
class_name_(NULL),
function_name_(NULL),
@@ -1482,6 +1485,9 @@ IsolateSpawnState::IsolateSpawnState(Dart_Port parent_port,
serialized_message_(NULL),
serialized_message_len_(0) {
script_url_ = strdup(script_url);
+ if (package_root != NULL) {
+ package_root_ = strdup(package_root);
+ }
library_url_ = NULL;
function_name_ = strdup("main");
exception_callback_name_ = strdup("_unhandledExceptionCallback");
@@ -1492,6 +1498,7 @@ IsolateSpawnState::IsolateSpawnState(Dart_Port parent_port,
IsolateSpawnState::~IsolateSpawnState() {
free(script_url_);
+ free(package_root_);
free(library_url_);
free(function_name_);
free(class_name_);
« no previous file with comments | « runtime/vm/isolate.h ('k') | sdk/lib/isolate/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698