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

Unified Diff: pkg/compiler/lib/src/compiler.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: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index eef0520b38009d1f280718df23ca7795bacadf5c..a9d7dde4b8c40d64b2d5a883ee9d3047fd67b76a 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -718,6 +718,10 @@ abstract class Compiler implements DiagnosticListener {
*/
final bool preserveComments;
+ /// Use the cew CPS based backend end. This flag works for the Dart and JS
Johnni Winther 2015/04/16 09:17:05 'cew' -> 'new' 'flag works for the Dart' -> 'flag
karlklose 2015/04/16 11:21:46 Done.
+ /// backend.
+ final bool useCpsIr;
+
/**
* Is the compiler in verbose mode.
*/
@@ -1000,6 +1004,7 @@ abstract class Compiler implements DiagnosticListener {
this.analyzeMain: false,
bool analyzeSignaturesOnly: false,
this.preserveComments: false,
+ this.useCpsIr: false,
this.verbose: false,
this.sourceMapUri: null,
this.outputUri: null,
@@ -1470,7 +1475,7 @@ abstract class Compiler implements DiagnosticListener {
bool irEnabled() {
// TODO(sigurdm,kmillikin): Support checked-mode checks.
- return const bool.fromEnvironment('USE_NEW_BACKEND') &&
+ return useCpsIr &&
backend is DartBackend &&
!enableTypeAssertions &&
!enableConcreteTypeInference;

Powered by Google App Engine
This is Rietveld 408576698