Skip to content

Commit 774a392

Browse files
rakudramacommit-bot@chromium.org
authored andcommitted
Add '--benchmarking-x' flag
Change-Id: Iae541ae11431ccb86b74ca44b280e5bb6636d5f9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108300 Commit-Queue: Stephen Adams <[email protected]> Reviewed-by: Johnni Winther <[email protected]>
1 parent db1abd0 commit 774a392

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

pkg/compiler/lib/src/commandline_options.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class Flags {
100100
/// Flag for a combination of flags for 'production' mode.
101101
static const String benchmarkingProduction = '--benchmarking-production';
102102

103-
/// Flag for a combination of flags for golem experiment mode.
104-
static const String golemExperiment = '--golem-x';
103+
/// Flag for a combination of flags for benchmarking 'experiment' mode.
104+
static const String benchmarkingExperiment = '--benchmarking-x';
105105

106106
static const String conditionalDirectives = '--conditional-directives';
107107

pkg/compiler/lib/src/dart2js.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ Future<api.CompilationResult> compile(List<String> argv,
456456
new OptionHandler(Flags.omitAsCasts, passThrough),
457457
new OptionHandler(Flags.laxRuntimeTypeToString, passThrough),
458458
new OptionHandler(Flags.benchmarkingProduction, passThrough),
459-
new OptionHandler(Flags.golemExperiment, passThrough),
459+
new OptionHandler(Flags.benchmarkingExperiment, passThrough),
460460

461461
// TODO(floitsch): remove conditional directives flag.
462462
// We don't provide the info-message yet, since we haven't publicly

pkg/compiler/lib/src/options.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ class CompilerOptions implements DiagnosticOptions {
120120
/// Sets a combination of flags for benchmarking 'production' mode.
121121
bool benchmarkingProduction = false;
122122

123-
/// Sets a combination of flags for golem experiment benchmarking mode.
124-
bool golemExperiment = false;
123+
/// Sets a combination of flags for benchmarking 'experiment' mode.
124+
bool benchmarkingExperiment = false;
125125

126126
/// ID associated with this sdk build.
127127
String buildId = _UNDETERMINED_BUILD_ID;
@@ -362,7 +362,8 @@ class CompilerOptions implements DiagnosticOptions {
362362
..allowMockCompilation = _hasOption(options, Flags.allowMockCompilation)
363363
..benchmarkingProduction =
364364
_hasOption(options, Flags.benchmarkingProduction)
365-
..golemExperiment = _hasOption(options, Flags.golemExperiment)
365+
..benchmarkingExperiment =
366+
_hasOption(options, Flags.benchmarkingExperiment)
366367
..buildId =
367368
_extractStringOption(options, '--build-id=', _UNDETERMINED_BUILD_ID)
368369
..compileForServer = _hasOption(options, Flags.serverMode)
@@ -466,9 +467,9 @@ class CompilerOptions implements DiagnosticOptions {
466467
omitImplicitChecks = true;
467468
}
468469

469-
if (golemExperiment) {
470-
// TODO(sra): Set flags implied by '--golem-x'. Initially this will be
471-
// --experiment-new-rti, and later NNBD.
470+
if (benchmarkingExperiment) {
471+
// TODO(sra): Set flags implied by '--benchmarking-x'. Initially this will
472+
// be --experiment-new-rti, and later NNBD.
472473
}
473474

474475
if (optimizationLevel != null) {

0 commit comments

Comments
 (0)