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

Unified Diff: runtime/bin/main.cc

Issue 2933203004: Replace the --platform vm option with --kernel-binaries option. (Closed)
Patch Set: s/set_kernel_binaries_directory/SetKernelBinaries Created 3 years, 6 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/bin/dfe.cc ('k') | tools/testing/dart/compiler_configuration.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 948f112894e41e69405e4caf947c01b669d3d6fe..c969db839623011fa640cbdd3c9e2f2c26b93667 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -381,13 +381,13 @@ static bool ProcessFrontendOption(const char* filename,
}
-static bool ProcessPlatformOption(const char* filename,
- CommandLineOptions* vm_options) {
- ASSERT(filename != NULL);
- if (filename[0] == '\0') {
+static bool ProcessKernelBinariesOption(const char* dirname,
+ CommandLineOptions* vm_options) {
+ ASSERT(dirname != NULL);
+ if (dirname[0] == '\0') {
return false;
}
- dfe.set_platform_binary_filename(filename);
+ dfe.SetKernelBinaries(dirname);
return true;
}
#endif
@@ -616,7 +616,7 @@ static struct {
{"--parse_all", ProcessParseAllOption},
#if !defined(DART_PRECOMPILED_RUNTIME)
{"--dfe=", ProcessFrontendOption},
- {"--platform=", ProcessPlatformOption},
+ {"--kernel-binaries=", ProcessKernelBinariesOption},
#endif
{"--enable-vm-service", ProcessEnableVmServiceOption},
{"--disable-service-origin-check", ProcessDisableServiceOriginCheckOption},
« no previous file with comments | « runtime/bin/dfe.cc ('k') | tools/testing/dart/compiler_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698