OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'configuration.dart'; | 7 import 'configuration.dart'; |
8 import 'path.dart'; | 8 import 'path.dart'; |
9 import 'runtime_updater.dart'; | 9 import 'runtime_updater.dart'; |
10 import 'utils.dart'; | 10 import 'utils.dart'; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 new _Option.bool('checked', 'Run tests in checked mode.'), | 171 new _Option.bool('checked', 'Run tests in checked mode.'), |
172 new _Option.bool('strong', 'Run tests in strong mode.'), | 172 new _Option.bool('strong', 'Run tests in strong mode.'), |
173 new _Option.bool('host_checked', 'Run compiler in checked mode.'), | 173 new _Option.bool('host_checked', 'Run compiler in checked mode.'), |
174 new _Option.bool('minified', 'Enable minification in the compiler.'), | 174 new _Option.bool('minified', 'Enable minification in the compiler.'), |
175 new _Option.bool( | 175 new _Option.bool( |
176 'csp', 'Run tests under Content Security Policy restrictions.'), | 176 'csp', 'Run tests under Content Security Policy restrictions.'), |
177 new _Option.bool( | 177 new _Option.bool( |
178 'fast_startup', 'Pass the --fast-startup flag to dart2js.'), | 178 'fast_startup', 'Pass the --fast-startup flag to dart2js.'), |
179 new _Option.bool('enable_asserts', | 179 new _Option.bool('enable_asserts', |
180 'Pass the --enable-asserts flag to dart2js or to the vm.'), | 180 'Pass the --enable-asserts flag to dart2js or to the vm.'), |
181 new _Option.bool('dart2js_with_kernel', | 181 new _Option.bool( |
182 'Enable the internal pipeline in dart2js to use kernel.'), | 182 'dart2js_with_kernel', 'Pass the --use-kernel flag to dart2js.'), |
| 183 new _Option.bool('dart2js_with_kernel_in_ssa', |
| 184 'Pass the --use-kernel-in-ssa flag to dart2js.'), |
183 new _Option.bool('hot_reload', 'Run hot reload stress tests.'), | 185 new _Option.bool('hot_reload', 'Run hot reload stress tests.'), |
184 new _Option.bool( | 186 new _Option.bool( |
185 'hot_reload_rollback', 'Run hot reload rollback stress tests.'), | 187 'hot_reload_rollback', 'Run hot reload rollback stress tests.'), |
186 new _Option.bool('use_blobs', | 188 new _Option.bool('use_blobs', |
187 'Use mmap instead of shared libraries for precompilation.'), | 189 'Use mmap instead of shared libraries for precompilation.'), |
188 new _Option.int('timeout', 'Timeout in seconds.', abbr: 't'), | 190 new _Option.int('timeout', 'Timeout in seconds.', abbr: 't'), |
189 new _Option( | 191 new _Option( |
190 'progress', | 192 'progress', |
191 '''Progress indication mode. | 193 '''Progress indication mode. |
192 | 194 |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 printTiming: data["time"] as bool, | 589 printTiming: data["time"] as bool, |
588 printReport: data["report"] as bool, | 590 printReport: data["report"] as bool, |
589 reportInJson: data["report_in_json"] as bool, | 591 reportInJson: data["report_in_json"] as bool, |
590 resetBrowser: data["reset_browser_configuration"] as bool, | 592 resetBrowser: data["reset_browser_configuration"] as bool, |
591 skipCompilation: data["skip_compilation"] as bool, | 593 skipCompilation: data["skip_compilation"] as bool, |
592 useBlobs: data["use_blobs"] as bool, | 594 useBlobs: data["use_blobs"] as bool, |
593 useSdk: data["use_sdk"] as bool, | 595 useSdk: data["use_sdk"] as bool, |
594 useFastStartup: data["fast_startup"] as bool, | 596 useFastStartup: data["fast_startup"] as bool, |
595 useEnableAsserts: data["enable_asserts"] as bool, | 597 useEnableAsserts: data["enable_asserts"] as bool, |
596 useDart2JSWithKernel: data["dart2js_with_kernel"] as bool, | 598 useDart2JSWithKernel: data["dart2js_with_kernel"] as bool, |
| 599 useDart2JSWithKernelInSsa: |
| 600 data["dart2js_with_kernel_in_ssa"] as bool, |
597 writeDebugLog: data["write_debug_log"] as bool, | 601 writeDebugLog: data["write_debug_log"] as bool, |
598 writeTestOutcomeLog: data["write_test_outcome_log"] as bool, | 602 writeTestOutcomeLog: data["write_test_outcome_log"] as bool, |
599 drtPath: data["drt"] as String, | 603 drtPath: data["drt"] as String, |
600 chromePath: data["chrome"] as String, | 604 chromePath: data["chrome"] as String, |
601 safariPath: data["safari"] as String, | 605 safariPath: data["safari"] as String, |
602 firefoxPath: data["firefox"] as String, | 606 firefoxPath: data["firefox"] as String, |
603 dartPath: data["dart"] as String, | 607 dartPath: data["dart"] as String, |
604 dartPrecompiledPath: data["dart_precompiled"] as String, | 608 dartPrecompiledPath: data["dart_precompiled"] as String, |
605 flutterPath: data["flutter"] as String, | 609 flutterPath: data["flutter"] as String, |
606 taskCount: data["tasks"] as int, | 610 taskCount: data["tasks"] as int, |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 if (name == option.name) return option; | 756 if (name == option.name) return option; |
753 | 757 |
754 // Allow hyphens instead of underscores as the separator since they are | 758 // Allow hyphens instead of underscores as the separator since they are |
755 // more common for command line flags. | 759 // more common for command line flags. |
756 if (name == option.name.replaceAll("_", "-")) return option; | 760 if (name == option.name.replaceAll("_", "-")) return option; |
757 } | 761 } |
758 | 762 |
759 return null; | 763 return null; |
760 } | 764 } |
761 } | 765 } |
OLD | NEW |