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

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: Update comment. 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 | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4811a94ebb811f4b82fa1fec8c4b8265269c8d31 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 new CPS based backend end. This flag works for both the Dart and
+ /// JavaScript 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;
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698