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

Side by Side Diff: tools/testing/dart/test_suite.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/compiler_configuration.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 2204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2215 args.add("--categories=all"); 2215 args.add("--categories=all");
2216 } 2216 }
2217 } 2217 }
2218 if ((compiler == "dart2js" || compiler == "dart2dart") && 2218 if ((compiler == "dart2js" || compiler == "dart2dart") &&
2219 configuration["minified"]) { 2219 configuration["minified"]) {
2220 args.add("--minify"); 2220 args.add("--minify");
2221 } 2221 }
2222 if (compiler == "dart2js" && configuration["csp"]) { 2222 if (compiler == "dart2js" && configuration["csp"]) {
2223 args.add("--csp"); 2223 args.add("--csp");
2224 } 2224 }
2225 if (compiler == "dart2js" && configuration["cps_ir"]) {
2226 args.add("--use-cps-ir");
2227 }
2225 if (compiler == "dartanalyzer" || compiler == "dart2analyzer") { 2228 if (compiler == "dartanalyzer" || compiler == "dart2analyzer") {
2226 args.add("--show-package-warnings"); 2229 args.add("--show-package-warnings");
2227 args.add("--enable-async"); 2230 args.add("--enable-async");
2228 } 2231 }
2229 return args; 2232 return args;
2230 } 2233 }
2231 2234
2232 static bool isBrowserRuntime(String runtime) { 2235 static bool isBrowserRuntime(String runtime) {
2233 const BROWSERS = const [ 2236 const BROWSERS = const [
2234 'drt', 2237 'drt',
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 for (var key in PATH_REPLACEMENTS.keys) { 2398 for (var key in PATH_REPLACEMENTS.keys) {
2396 if (path.startsWith(key)) { 2399 if (path.startsWith(key)) {
2397 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]); 2400 path = path.replaceFirst(key, PATH_REPLACEMENTS[key]);
2398 break; 2401 break;
2399 } 2402 }
2400 } 2403 }
2401 } 2404 }
2402 return path; 2405 return path;
2403 } 2406 }
2404 } 2407 }
OLDNEW
« no previous file with comments | « tools/testing/dart/compiler_configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698