| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library compiler_configuration; | 5 library compiler_configuration; |
| 6 | 6 |
| 7 import 'dart:io' show Platform; | 7 import 'dart:io' show Platform; |
| 8 | 8 |
| 9 import 'runtime_configuration.dart' show RuntimeConfiguration; | 9 import 'runtime_configuration.dart' show RuntimeConfiguration; |
| 10 import 'runtime_configuration.dart' show DartPrecompiledAdbRuntimeConfiguration; | 10 import 'runtime_configuration.dart' show DartPrecompiledAdbRuntimeConfiguration; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 bool isHostChecked = configuration['host_checked']; | 62 bool isHostChecked = configuration['host_checked']; |
| 63 bool useSdk = configuration['use_sdk']; | 63 bool useSdk = configuration['use_sdk']; |
| 64 bool isCsp = configuration['csp']; | 64 bool isCsp = configuration['csp']; |
| 65 bool useCps = configuration['cps_ir']; | 65 bool useCps = configuration['cps_ir']; |
| 66 bool useBlobs = configuration['use_blobs']; | 66 bool useBlobs = configuration['use_blobs']; |
| 67 bool hotReload = configuration['hot_reload']; | 67 bool hotReload = configuration['hot_reload']; |
| 68 bool hotReloadRollback = configuration['hot_reload_rollback']; | 68 bool hotReloadRollback = configuration['hot_reload_rollback']; |
| 69 bool useFastStartup = configuration['fast_startup']; | 69 bool useFastStartup = configuration['fast_startup']; |
| 70 bool useKernelInDart2js = configuration['dart2js_with_kernel']; | 70 bool useKernelInDart2js = configuration['dart2js_with_kernel']; |
| 71 bool verifyKernel = configuration['verify-ir']; | 71 bool verifyKernel = configuration['verify-ir']; |
| 72 bool useDFE = configuration['useDFE']; | 72 bool useDFE = !configuration['noDFE']; |
| 73 bool useFasta = configuration['useFasta']; | 73 bool useFasta = configuration['useFasta']; |
| 74 bool treeShake = !configuration['no-tree-shake']; | 74 bool treeShake = !configuration['no-tree-shake']; |
| 75 | 75 |
| 76 switch (compiler) { | 76 switch (compiler) { |
| 77 case 'dart2analyzer': | 77 case 'dart2analyzer': |
| 78 return new AnalyzerCompilerConfiguration( | 78 return new AnalyzerCompilerConfiguration( |
| 79 isDebug: isDebug, | 79 isDebug: isDebug, |
| 80 isChecked: isChecked, | 80 isChecked: isChecked, |
| 81 isStrong: isStrong, | 81 isStrong: isStrong, |
| 82 isHostChecked: isHostChecked, | 82 isHostChecked: isHostChecked, |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 RuntimeConfiguration runtimeConfiguration, | 932 RuntimeConfiguration runtimeConfiguration, |
| 933 String buildDir, | 933 String buildDir, |
| 934 TestInformation info, | 934 TestInformation info, |
| 935 List<String> vmOptions, | 935 List<String> vmOptions, |
| 936 List<String> sharedOptions, | 936 List<String> sharedOptions, |
| 937 List<String> originalArguments, | 937 List<String> originalArguments, |
| 938 CommandArtifact artifact) { | 938 CommandArtifact artifact) { |
| 939 return <String>[]; | 939 return <String>[]; |
| 940 } | 940 } |
| 941 } | 941 } |
| OLD | NEW |