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 import 'dart:io'; | 5 import 'dart:io'; |
6 | 6 |
7 import 'configuration.dart'; | 7 import 'configuration.dart'; |
8 import 'runtime_configuration.dart'; | 8 import 'runtime_configuration.dart'; |
9 import 'test_runner.dart'; | 9 import 'test_runner.dart'; |
10 import 'test_suite.dart'; | 10 import 'test_suite.dart'; |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 String buildDir, | 196 String buildDir, |
197 TestInformation info, | 197 TestInformation info, |
198 List<String> vmOptions, | 198 List<String> vmOptions, |
199 List<String> sharedOptions, | 199 List<String> sharedOptions, |
200 List<String> originalArguments, | 200 List<String> originalArguments, |
201 CommandArtifact artifact) { | 201 CommandArtifact artifact) { |
202 List<String> args = []; | 202 List<String> args = []; |
203 if (useDfe) { | 203 if (useDfe) { |
204 args.add('--dfe=${buildDir}/gen/kernel-service.dart.snapshot'); | 204 args.add('--dfe=${buildDir}/gen/kernel-service.dart.snapshot'); |
205 args.add('--platform=${buildDir}/patched_sdk/platform.dill'); | 205 args.add('--platform=${buildDir}/patched_sdk/platform.dill'); |
| 206 args.add('--vmservice_io=${buildDir}/patched_sdk/vmservice_io.dill'); |
206 } | 207 } |
207 if (isChecked) { | 208 if (isChecked) { |
208 args.add('--enable_asserts'); | 209 args.add('--enable_asserts'); |
209 args.add('--enable_type_checks'); | 210 args.add('--enable_type_checks'); |
210 } | 211 } |
211 if (hotReload) { | 212 if (hotReload) { |
212 args.add('--hot-reload-test-mode'); | 213 args.add('--hot-reload-test-mode'); |
213 } else if (hotReloadRollback) { | 214 } else if (hotReloadRollback) { |
214 args.add('--hot-reload-rollback-test-mode'); | 215 args.add('--hot-reload-rollback-test-mode'); |
215 } | 216 } |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 } else if (arch == Architecture.arm64) { | 636 } else if (arch == Architecture.arm64) { |
636 exec = "$buildDir/clang_x64/dart_bootstrap"; | 637 exec = "$buildDir/clang_x64/dart_bootstrap"; |
637 } | 638 } |
638 } else { | 639 } else { |
639 exec = "$buildDir/dart_bootstrap"; | 640 exec = "$buildDir/dart_bootstrap"; |
640 } | 641 } |
641 var args = <String>[]; | 642 var args = <String>[]; |
642 if (useDfe) { | 643 if (useDfe) { |
643 args.add('--dfe=utils/kernel-service/kernel-service.dart'); | 644 args.add('--dfe=utils/kernel-service/kernel-service.dart'); |
644 args.add('--platform=${buildDir}/patched_sdk/platform.dill'); | 645 args.add('--platform=${buildDir}/patched_sdk/platform.dill'); |
| 646 args.add('--vmservice_io=${buildDir}/patched_sdk/vmservice_io.dill'); |
645 } | 647 } |
646 args.add("--snapshot-kind=app-aot"); | 648 args.add("--snapshot-kind=app-aot"); |
647 if (useBlobs) { | 649 if (useBlobs) { |
648 args.add("--snapshot=$tempDir/out.aotsnapshot"); | 650 args.add("--snapshot=$tempDir/out.aotsnapshot"); |
649 args.add("--use-blobs"); | 651 args.add("--use-blobs"); |
650 } else { | 652 } else { |
651 args.add("--snapshot=$tempDir/out.S"); | 653 args.add("--snapshot=$tempDir/out.S"); |
652 } | 654 } |
653 if (isAndroid && arch == Architecture.arm) { | 655 if (isAndroid && arch == Architecture.arm) { |
654 args.add('--no-sim-use-hardfp'); | 656 args.add('--no-sim-use-hardfp'); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 RuntimeConfiguration runtimeConfiguration, | 939 RuntimeConfiguration runtimeConfiguration, |
938 String buildDir, | 940 String buildDir, |
939 TestInformation info, | 941 TestInformation info, |
940 List<String> vmOptions, | 942 List<String> vmOptions, |
941 List<String> sharedOptions, | 943 List<String> sharedOptions, |
942 List<String> originalArguments, | 944 List<String> originalArguments, |
943 CommandArtifact artifact) { | 945 CommandArtifact artifact) { |
944 return <String>[]; | 946 return <String>[]; |
945 } | 947 } |
946 } | 948 } |
OLD | NEW |