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

Unified Diff: tools/testing/dart/runtime_configuration.dart

Issue 2416973003: Reapply "Use a single file for app snapshots." (Closed)
Patch Set: sync Created 4 years, 2 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
« runtime/bin/main.cc ('K') | « tools/testing/dart/compiler_configuration.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/runtime_configuration.dart
diff --git a/tools/testing/dart/runtime_configuration.dart b/tools/testing/dart/runtime_configuration.dart
index 8983cc5949d04f30da138b57a4c8853d740dfb85..5e8be6e2245a185803e01414dd97e4f7602fe135 100644
--- a/tools/testing/dart/runtime_configuration.dart
+++ b/tools/testing/dart/runtime_configuration.dart
@@ -4,6 +4,8 @@
library runtime_configuration;
+import 'dart:io' show Platform;
+
import 'compiler_configuration.dart' show CommandArtifact;
// TODO(ahe): Remove this import, we can precompute all the values required
@@ -244,16 +246,17 @@ class DartAppRuntimeConfiguration extends DartVmRuntimeConfiguration {
throw "dart_app cannot run files of type '$type'.";
}
- var augmentedArgs = new List();
- augmentedArgs.add("--run-app-snapshot=${artifact.filename}");
- if (useBlobs) {
- augmentedArgs.add("--use-blobs");
+ var args = new List();
+ args.addAll(arguments);
+ for (var i = 0; i < args.length; i++) {
+ if (args[i].endsWith(".dart")) {
+ args[i] = "${artifact.filename}/out.jitsnapshot";
+ }
}
- augmentedArgs.addAll(arguments);
return <Command>[
commandBuilder.getVmCommand(suite.dartVmBinaryFileName,
- augmentedArgs, environmentOverrides)
+ args, environmentOverrides)
];
}
}
@@ -274,16 +277,17 @@ class DartPrecompiledRuntimeConfiguration extends DartVmRuntimeConfiguration {
throw "dart_precompiled cannot run files of type '$type'.";
}
- var augmentedArgs = new List();
- augmentedArgs.add("--run-app-snapshot=${artifact.filename}");
- if (useBlobs) {
- augmentedArgs.add("--use-blobs");
+ var args = new List();
+ args.addAll(arguments);
+ for (var i = 0; i < args.length; i++) {
+ if (args[i].endsWith(".dart")) {
+ args[i] = "${artifact.filename}/out.aotsnapshot";
+ }
}
- augmentedArgs.addAll(arguments);
return <Command>[
commandBuilder.getVmCommand(suite.dartPrecompiledBinaryFileName,
- augmentedArgs, environmentOverrides)
+ args, environmentOverrides)
];
}
}
« runtime/bin/main.cc ('K') | « tools/testing/dart/compiler_configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698