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 | 7 import 'dart:io' show |
8 Platform; | 8 Platform; |
9 | 9 |
10 import 'runtime_configuration.dart' show | 10 import 'runtime_configuration.dart' show |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 var randName = TestUtils.getRandomNumber().toString(); | 510 var randName = TestUtils.getRandomNumber().toString(); |
511 return '$tempDir/test.$randName'; | 511 return '$tempDir/test.$randName'; |
512 } | 512 } |
513 | 513 |
514 CompilationCommand computeCompilationCommand( | 514 CompilationCommand computeCompilationCommand( |
515 String outputName, | 515 String outputName, |
516 String buildDir, | 516 String buildDir, |
517 CommandBuilder commandBuilder, | 517 CommandBuilder commandBuilder, |
518 List arguments, | 518 List arguments, |
519 Map<String, String> environmentOverrides) { | 519 Map<String, String> environmentOverrides) { |
520 var exec = "$buildDir/dart_no_snapshot"; | 520 var exec = "$buildDir/dart_bootstrap"; |
521 var args = new List(); | 521 var args = new List(); |
522 args.add("--full-snapshot-after-run=$outputName"); | 522 args.add("--full-snapshot-after-run=$outputName"); |
523 args.addAll(arguments); | 523 args.addAll(arguments); |
524 | 524 |
525 return commandBuilder.getCompilationCommand( | 525 return commandBuilder.getCompilationCommand( |
526 'dart2snapshot', outputName, !useSdk, | 526 'dart2snapshot', outputName, !useSdk, |
527 bootstrapDependencies(buildDir), | 527 bootstrapDependencies(buildDir), |
528 exec, args, environmentOverrides); | 528 exec, args, environmentOverrides); |
529 } | 529 } |
530 | 530 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 RuntimeConfiguration runtimeConfiguration, | 619 RuntimeConfiguration runtimeConfiguration, |
620 String buildDir, | 620 String buildDir, |
621 TestInformation info, | 621 TestInformation info, |
622 List<String> vmOptions, | 622 List<String> vmOptions, |
623 List<String> sharedOptions, | 623 List<String> sharedOptions, |
624 List<String> originalArguments, | 624 List<String> originalArguments, |
625 CommandArtifact artifact) { | 625 CommandArtifact artifact) { |
626 return <String>[]; | 626 return <String>[]; |
627 } | 627 } |
628 } | 628 } |
OLD | NEW |