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