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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool isStrong = configuration['strong']; | 61 bool isStrong = configuration['strong']; |
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']; | |
72 bool treeShake = !configuration['no-tree-shake']; | |
73 | 71 |
74 switch (compiler) { | 72 switch (compiler) { |
75 case 'dart2analyzer': | 73 case 'dart2analyzer': |
76 return new AnalyzerCompilerConfiguration( | 74 return new AnalyzerCompilerConfiguration( |
77 isDebug: isDebug, | 75 isDebug: isDebug, |
78 isChecked: isChecked, | 76 isChecked: isChecked, |
79 isStrong: isStrong, | 77 isStrong: isStrong, |
80 isHostChecked: isHostChecked, | 78 isHostChecked: isHostChecked, |
81 useSdk: useSdk); | 79 useSdk: useSdk); |
82 case 'dart2js': | 80 case 'dart2js': |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 RuntimeConfiguration runtimeConfiguration, | 963 RuntimeConfiguration runtimeConfiguration, |
966 String buildDir, | 964 String buildDir, |
967 TestInformation info, | 965 TestInformation info, |
968 List<String> vmOptions, | 966 List<String> vmOptions, |
969 List<String> sharedOptions, | 967 List<String> sharedOptions, |
970 List<String> originalArguments, | 968 List<String> originalArguments, |
971 CommandArtifact artifact) { | 969 CommandArtifact artifact) { |
972 return <String>[]; | 970 return <String>[]; |
973 } | 971 } |
974 } | 972 } |
OLD | NEW |