OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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:async'; | 5 import 'dart:async'; |
6 import 'dart:convert'; | 6 import 'dart:convert'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'compiler_configuration.dart'; | 9 import 'compiler_configuration.dart'; |
10 import 'http_server.dart'; | 10 import 'http_server.dart'; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 this.printTiming, | 42 this.printTiming, |
43 this.printReport, | 43 this.printReport, |
44 this.reportInJson, | 44 this.reportInJson, |
45 this.resetBrowser, | 45 this.resetBrowser, |
46 this.skipCompilation, | 46 this.skipCompilation, |
47 this.useBlobs, | 47 this.useBlobs, |
48 this.useSdk, | 48 this.useSdk, |
49 this.useFastStartup, | 49 this.useFastStartup, |
50 this.useEnableAsserts, | 50 this.useEnableAsserts, |
51 this.useDart2JSWithKernel, | 51 this.useDart2JSWithKernel, |
| 52 this.useDart2JSWithKernelInSsa, |
52 this.writeDebugLog, | 53 this.writeDebugLog, |
53 this.writeTestOutcomeLog, | 54 this.writeTestOutcomeLog, |
54 this.drtPath, | 55 this.drtPath, |
55 this.chromePath, | 56 this.chromePath, |
56 this.safariPath, | 57 this.safariPath, |
57 this.firefoxPath, | 58 this.firefoxPath, |
58 this.dartPath, | 59 this.dartPath, |
59 this.dartPrecompiledPath, | 60 this.dartPrecompiledPath, |
60 this.flutterPath, | 61 this.flutterPath, |
61 this.taskCount, | 62 this.taskCount, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 final bool printTiming; | 105 final bool printTiming; |
105 final bool printReport; | 106 final bool printReport; |
106 final bool reportInJson; | 107 final bool reportInJson; |
107 final bool resetBrowser; | 108 final bool resetBrowser; |
108 final bool skipCompilation; | 109 final bool skipCompilation; |
109 final bool useBlobs; | 110 final bool useBlobs; |
110 final bool useSdk; | 111 final bool useSdk; |
111 final bool useFastStartup; | 112 final bool useFastStartup; |
112 final bool useEnableAsserts; | 113 final bool useEnableAsserts; |
113 final bool useDart2JSWithKernel; | 114 final bool useDart2JSWithKernel; |
| 115 final bool useDart2JSWithKernelInSsa; |
114 final bool writeDebugLog; | 116 final bool writeDebugLog; |
115 final bool writeTestOutcomeLog; | 117 final bool writeTestOutcomeLog; |
116 | 118 |
117 // Various file paths. | 119 // Various file paths. |
118 | 120 |
119 final String drtPath; | 121 final String drtPath; |
120 final String chromePath; | 122 final String chromePath; |
121 final String safariPath; | 123 final String safariPath; |
122 final String firefoxPath; | 124 final String firefoxPath; |
123 final String dartPath; | 125 final String dartPath; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 if (!runtime.isBrowser) { | 212 if (!runtime.isBrowser) { |
211 args.add("--allow-mock-compilation"); | 213 args.add("--allow-mock-compilation"); |
212 args.add("--categories=all"); | 214 args.add("--categories=all"); |
213 } | 215 } |
214 | 216 |
215 if (isMinified) args.add("--minify"); | 217 if (isMinified) args.add("--minify"); |
216 if (isCsp) args.add("--csp"); | 218 if (isCsp) args.add("--csp"); |
217 if (useFastStartup) args.add("--fast-startup"); | 219 if (useFastStartup) args.add("--fast-startup"); |
218 if (useEnableAsserts) args.add("--enable-asserts"); | 220 if (useEnableAsserts) args.add("--enable-asserts"); |
219 if (useDart2JSWithKernel) args.add("--use-kernel"); | 221 if (useDart2JSWithKernel) args.add("--use-kernel"); |
| 222 if (useDart2JSWithKernelInSsa) args.add("--use-kernel-in-ssa"); |
220 return args; | 223 return args; |
221 } | 224 } |
222 | 225 |
223 String _windowsSdkPath; | 226 String _windowsSdkPath; |
224 String get windowsSdkPath { | 227 String get windowsSdkPath { |
225 if (!Platform.isWindows) { | 228 if (!Platform.isWindows) { |
226 throw new StateError( | 229 throw new StateError( |
227 "Should not use windowsSdkPath when not running on Windows."); | 230 "Should not use windowsSdkPath when not running on Windows."); |
228 } | 231 } |
229 | 232 |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 | 737 |
735 case macos: | 738 case macos: |
736 return 'xcodebuild/'; | 739 return 'xcodebuild/'; |
737 } | 740 } |
738 | 741 |
739 throw "unreachable"; | 742 throw "unreachable"; |
740 } | 743 } |
741 | 744 |
742 String toString() => "System($name)"; | 745 String toString() => "System($name)"; |
743 } | 746 } |
OLD | NEW |