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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir.dart

Issue 1089793002: Add a command line option to use the new CPS based 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
Index: tests/compiler/dart2js/js_backend_cps_ir.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir.dart b/tests/compiler/dart2js/js_backend_cps_ir.dart
index a435110c7c1fc0b5bc241e9640806982dedebee5..e3fb44dcb8888e75e02c577292a10099bb689d3b 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir.dart
@@ -58,13 +58,10 @@ String getCodeForMethod(Compiler compiler,
}
runTests(List<TestEntry> tests) {
- Expect.isTrue(const bool.fromEnvironment("USE_CPS_IR"),
- 'Run with USE_CPS_IR=true');
-
for (TestEntry test in tests) {
Map files = {TEST_MAIN_FILE: test.source};
asyncTest(() {
- Compiler compiler = compilerFor(files);
+ Compiler compiler = compilerFor(files, options: <String>['--use-cps-ir']);
Uri uri = Uri.parse('memory:$TEST_MAIN_FILE');
return compiler.run(uri).then((bool success) {
Expect.isTrue(success);

Powered by Google App Engine
This is Rietveld 408576698