Chromium Code Reviews| 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 Directory, Platform; |
| 8 | 8 |
| 9 import 'runtime_configuration.dart' show RuntimeConfiguration; | 9 import 'runtime_configuration.dart' show RuntimeConfiguration; |
| 10 | 10 |
| 11 import 'test_runner.dart' show Command, CommandBuilder, CompilationCommand; | 11 import 'test_runner.dart' show Command, CommandBuilder, CompilationCommand; |
| 12 | 12 |
| 13 import 'test_suite.dart' show TestInformation, TestUtils; | 13 import 'test_suite.dart' show TestInformation, TestUtils; |
| 14 | 14 |
| 15 /// Grouping of a command with its expected result. | 15 /// Grouping of a command with its expected result. |
| 16 class CommandArtifact { | 16 class CommandArtifact { |
| 17 final List<Command> commands; | 17 final List<Command> commands; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 CommandBuilder.instance, arguments, environmentOverrides) | 326 CommandBuilder.instance, arguments, environmentOverrides) |
| 327 ], '$tempDir', 'application/dart-precompiled'); | 327 ], '$tempDir', 'application/dart-precompiled'); |
| 328 } | 328 } |
| 329 | 329 |
| 330 CompilationCommand computeCompilationCommand( | 330 CompilationCommand computeCompilationCommand( |
| 331 String tempDir, | 331 String tempDir, |
| 332 String buildDir, | 332 String buildDir, |
| 333 CommandBuilder commandBuilder, | 333 CommandBuilder commandBuilder, |
| 334 List arguments, | 334 List arguments, |
| 335 Map<String, String> environmentOverrides) { | 335 Map<String, String> environmentOverrides) { |
| 336 var exec = "$buildDir/dart_bootstrap"; | 336 var sourceDir = Directory.current.path; |
| 337 var exec = "$buildDir/gen_snapshot"; | |
| 337 var args = new List(); | 338 var args = new List(); |
| 338 args.add("--gen-precompiled-snapshot=$tempDir"); | 339 |
| 340 var precompiledVMIsolate = "$tempDir/precompiled.vmisolate"; | |
| 341 var precompiledIsolate = "$tempDir/precompiled.isolate"; | |
| 342 var precompiledInstructions = "$tempDir/precompiled.S"; | |
| 343 var dartProductEntries = "$sourceDir/runtime/bin/dart_product_entries.txt"; | |
| 344 var dartEntries = "$sourceDir/runtime/bin/dart_entries.txt"; | |
| 345 var vmServiceIoMain = "$sourceDir/runtime/bin/vmservice/vmservice_io.dart"; | |
| 346 | |
| 347 args.add("--embedder_entry_points_manifest=$dartProductEntries"); | |
| 348 args.add("--embedder_entry_points_manifest=$dartEntries"); | |
|
rmacnak
2016/04/20 22:56:04
if (!product) {
args.add("--embedder_entry_point
Cutch
2016/04/21 15:00:56
Done.
| |
| 349 args.add("--vm_isolate_snapshot=$precompiledVMIsolate"); | |
| 350 args.add("--isolate_snapshot=$precompiledIsolate"); | |
| 351 args.add("--instructions_snapshot=$precompiledInstructions"); | |
| 352 args.add("--url_mapping=dart:vmservice_io,$vmServiceIoMain"); | |
| 339 args.addAll(arguments); | 353 args.addAll(arguments); |
| 340 | 354 |
| 341 return commandBuilder.getCompilationCommand('precompiler', tempDir, !useSdk, | 355 return commandBuilder.getCompilationCommand('precompiler', tempDir, !useSdk, |
| 342 bootstrapDependencies(buildDir), exec, args, environmentOverrides); | 356 bootstrapDependencies(buildDir), exec, args, environmentOverrides); |
| 343 } | 357 } |
| 344 | 358 |
| 345 CompilationCommand computeAssembleCommand( | 359 CompilationCommand computeAssembleCommand( |
| 346 String tempDir, | 360 String tempDir, |
| 347 String buildDir, | 361 String buildDir, |
| 348 CommandBuilder commandBuilder, | 362 CommandBuilder commandBuilder, |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 589 RuntimeConfiguration runtimeConfiguration, | 603 RuntimeConfiguration runtimeConfiguration, |
| 590 String buildDir, | 604 String buildDir, |
| 591 TestInformation info, | 605 TestInformation info, |
| 592 List<String> vmOptions, | 606 List<String> vmOptions, |
| 593 List<String> sharedOptions, | 607 List<String> sharedOptions, |
| 594 List<String> originalArguments, | 608 List<String> originalArguments, |
| 595 CommandArtifact artifact) { | 609 CommandArtifact artifact) { |
| 596 return <String>[]; | 610 return <String>[]; |
| 597 } | 611 } |
| 598 } | 612 } |
| OLD | NEW |