Chromium Code Reviews| Index: tools/testing/dart/compiler_configuration.dart |
| diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart |
| index 398986a50f1c4e566d60c9ba3997acdd08c00eac..cfcaa7329037cf5b97b41552b3cd947d0b25d7dd 100644 |
| --- a/tools/testing/dart/compiler_configuration.dart |
| +++ b/tools/testing/dart/compiler_configuration.dart |
| @@ -53,6 +53,7 @@ abstract class CompilerConfiguration { |
| bool isCsp = configuration['csp']; |
| bool useCps = configuration['cps_ir']; |
| bool useBlobs = configuration['use_blobs']; |
| + bool hotReload = configuration['hot_reload']; |
| switch (compiler) { |
| case 'dart2analyzer': |
| @@ -89,7 +90,8 @@ abstract class CompilerConfiguration { |
| isDebug: isDebug, |
| isChecked: isChecked, |
| isHostChecked: isHostChecked, |
| - useSdk: useSdk); |
| + useSdk: useSdk, |
| + hotReload: hotReload); |
| default: |
| throw "Unknown compiler '$compiler'"; |
| } |
| @@ -149,13 +151,16 @@ abstract class CompilerConfiguration { |
| /// The "none" compiler. |
| class NoneCompilerConfiguration extends CompilerConfiguration { |
| + final bool hotReload; |
| + |
| NoneCompilerConfiguration( |
| - {bool isDebug, bool isChecked, bool isHostChecked, bool useSdk}) |
| + {bool isDebug, bool isChecked, bool isHostChecked, bool useSdk, bool hotReload}) |
|
Cutch
2016/07/01 18:21:09
80 columns here and elsewhere
rmacnak
2016/07/01 18:27:40
Done.
|
| : super._subclass( |
| isDebug: isDebug, |
| isChecked: isChecked, |
| isHostChecked: isHostChecked, |
| - useSdk: useSdk); |
| + useSdk: useSdk), |
| + this.hotReload = hotReload; |
| bool get hasCompiler => false; |
| @@ -172,6 +177,12 @@ class NoneCompilerConfiguration extends CompilerConfiguration { |
| args.add('--enable_asserts'); |
| args.add('--enable_type_checks'); |
| } |
| + if (hotReload) { |
| + args.add('--identity-reload'); |
| + args.add('--reload-every=100000'); |
| + args.add('--no-background-compilation'); |
| + args.add('--no-osr'); |
| + } |
| return args |
| ..addAll(vmOptions) |
| ..addAll(sharedOptions) |