Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: tools/testing/dart/compiler_configuration.dart

Issue 1064053005: Use --use-cps-ir compiler option in the test script to run dart2js with the new backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/bots/compiler.py ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/compiler_configuration.dart
diff --git a/tools/testing/dart/compiler_configuration.dart b/tools/testing/dart/compiler_configuration.dart
index 1200392d147219c76aa1bd2adae1c80eb81cc1cc..3681bae271b6983a2a2351817f7eb25976e15f8d 100644
--- a/tools/testing/dart/compiler_configuration.dart
+++ b/tools/testing/dart/compiler_configuration.dart
@@ -253,33 +253,22 @@ class Dart2jsCompilerConfiguration extends Dart2xCompilerConfiguration {
return multiplier;
}
- Map<String, String> envWithCpsFlag(Map<String, String> env) {
- if (env != environmentOverridesCacheObject || cpsFlagCache == null) {
- cpsFlagCache = { 'DART_VM_OPTIONS' : '-DUSE_CPS_IR=true' };
- if (env != null) {
- cpsFlagCache.addAll(env);
- }
- environmentOverridesCacheObject = env;
- }
- return cpsFlagCache;
- }
-
CommandArtifact computeCompilationArtifact(
String buildDir,
String tempDir,
CommandBuilder commandBuilder,
List arguments,
Map<String, String> environmentOverrides) {
- var env = useCps ? envWithCpsFlag(environmentOverrides) :
- environmentOverrides;
+ List compilerArguments = new List.from(arguments)
+ ..addAll(extraDart2jsOptions);
return new CommandArtifact(
<Command>[
this.computeCompilationCommand(
'$tempDir/out.js',
buildDir,
CommandBuilder.instance,
- []..addAll(arguments)..addAll(extraDart2jsOptions),
- env)],
+ compilerArguments,
+ environmentOverrides)],
'$tempDir/out.js',
'application/javascript');
}
« no previous file with comments | « tools/bots/compiler.py ('k') | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698