| Index: tools/testing/dart/compiler_configuration.dart
|
| diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart
|
| index 9ec90f002715c64f17edc836b5500d806c110f8e..83fcfbe20143d7f50f496363ca147276868e236a 100644
|
| --- a/tools/testing/dart/compiler_configuration.dart
|
| +++ b/tools/testing/dart/compiler_configuration.dart
|
| @@ -61,6 +61,7 @@ abstract class CompilerConfiguration {
|
| bool useSdk = configuration['use_sdk'];
|
| bool isCsp = configuration['csp'];
|
| bool useCps = configuration['cps_ir'];
|
| + bool useNoopt = configuration['noopt'];
|
|
|
| switch (compiler) {
|
| case 'dartanalyzer':
|
| @@ -80,7 +81,7 @@ abstract class CompilerConfiguration {
|
| case 'none':
|
| return new NoneCompilerConfiguration(
|
| isDebug: isDebug, isChecked: isChecked,
|
| - isHostChecked: isHostChecked, useSdk: useSdk);
|
| + isHostChecked: isHostChecked, useSdk: useSdk, useNoopt: useNoopt);
|
| default:
|
| throw "Unknown compiler '$compiler'";
|
| }
|
| @@ -136,14 +137,17 @@ abstract class CompilerConfiguration {
|
|
|
| /// The "none" compiler.
|
| class NoneCompilerConfiguration extends CompilerConfiguration {
|
| + final bool useNoopt;
|
| +
|
| NoneCompilerConfiguration({
|
| bool isDebug,
|
| bool isChecked,
|
| bool isHostChecked,
|
| - bool useSdk})
|
| + bool useSdk,
|
| + bool useNoopt})
|
| : super._subclass(
|
| isDebug: isDebug, isChecked: isChecked,
|
| - isHostChecked: isHostChecked, useSdk: useSdk);
|
| + isHostChecked: isHostChecked, useSdk: useSdk), useNoopt = useNoopt;
|
|
|
| bool get hasCompiler => false;
|
|
|
| @@ -160,6 +164,9 @@ class NoneCompilerConfiguration extends CompilerConfiguration {
|
| args.add('--enable_asserts');
|
| args.add('--enable_type_checks');
|
| }
|
| + if (useNoopt) {
|
| + args.add('--noopt');
|
| + }
|
| return args
|
| ..addAll(vmOptions)
|
| ..addAll(sharedOptions)
|
|
|