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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 590123002: Revert "Per isolate package root." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
index 1313609002de2d77afab21a30c262f499610bcf0..e0194fc649faa75509ba57a9ee49cb089cf68774 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate_patch.dart
@@ -277,14 +277,13 @@ patch class Isolate {
Uri uri, List<String> args, var message,
{ bool paused: false, Uri packageRoot }) {
// `paused` isn't handled yet.
+ // `packageRoot` isn't handled yet.
+ if (packageRoot != null) throw new UnimplementedError("packageRoot");
RawReceivePort readyPort;
try {
// The VM will invoke [_startIsolate] and not `main`.
readyPort = new RawReceivePort();
- var packageRootString =
- (packageRoot == null) ? null : packageRoot.toString();
- _spawnUri(
- readyPort.sendPort, uri.toString(), args, message, packageRootString);
+ _spawnUri(readyPort.sendPort, uri.toString(), args, message);
Completer completer = new Completer<Isolate>.sync();
readyPort.handler = (readyMessage) {
readyPort.close();
@@ -317,8 +316,7 @@ patch class Isolate {
native "Isolate_spawnFunction";
static SendPort _spawnUri(SendPort readyPort, String uri,
- List<String> args, var message,
- String packageRoot)
+ List<String> args, var message)
native "Isolate_spawnUri";
static void _sendOOB(port, msg) native "Isolate_sendOOB";
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698