Chromium Code Reviews| 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; |