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

Unified Diff: pkg/front_end/tool/perf.dart

Issue 2677423002: Small fix to perf.dart. (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/front_end/lib/kernel_generator.dart ('k') | pkg/front_end/tool/perf_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/tool/perf.dart
diff --git a/pkg/front_end/tool/perf.dart b/pkg/front_end/tool/perf.dart
index 7c4e4cd1d7be694a46ad8d0e3b88b95d3f8cd90e..ea4e5b2009649e9e0dade02da9f6f806badc22ae 100644
--- a/pkg/front_end/tool/perf.dart
+++ b/pkg/front_end/tool/perf.dart
@@ -115,16 +115,16 @@ Future<Program> generateKernel(Uri entryUri,
var options = new CompilerOptions()
..strongMode = false
..compileSdk = compileSdk
- ..packagesFileUri = new Uri.file('.packages')
+ ..packagesFileUri = Uri.base.resolve('.packages')
..onError = ((e) => print('${e.message}'));
if (useSdkSummary) {
// TODO(sigmund): adjust path based on the benchmark runner architecture.
// Possibly let the runner make the file available at an architecture
// independent location.
options.sdkSummary =
- new Uri.file('out/ReleaseX64/dart-sdk/lib/_internal/spec.sum');
+ Uri.base.resolve('out/ReleaseX64/dart-sdk/lib/_internal/spec.sum');
} else {
- options.sdkRoot = new Uri.file('sdk');
+ options.sdkRoot = Uri.base.resolve('sdk');
}
Program program = await kernelForProgram(entryUri, options);
dartkTimer.stop();
« no previous file with comments | « pkg/front_end/lib/kernel_generator.dart ('k') | pkg/front_end/tool/perf_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698