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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 737713004: Fix enabling of the new dart backend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 // when these are handled as erroneous libraries/compilation units. 1374 // when these are handled as erroneous libraries/compilation units.
1375 compileLoadedLibraries(); 1375 compileLoadedLibraries();
1376 } 1376 }
1377 }); 1377 });
1378 } 1378 }
1379 1379
1380 bool irEnabled() { 1380 bool irEnabled() {
1381 // TODO(sigurdm,kmillikin): Support checked-mode checks. 1381 // TODO(sigurdm,kmillikin): Support checked-mode checks.
1382 return const bool.fromEnvironment('USE_NEW_BACKEND') && 1382 return const bool.fromEnvironment('USE_NEW_BACKEND') &&
1383 backend is DartBackend && 1383 backend is DartBackend &&
1384 enableTypeAssertions && 1384 !enableTypeAssertions &&
1385 enableConcreteTypeInference; 1385 !enableConcreteTypeInference;
1386 } 1386 }
1387 1387
1388 void computeMain() { 1388 void computeMain() {
1389 if (mainApp == null) return; 1389 if (mainApp == null) return;
1390 1390
1391 Element main = mainApp.findExported(MAIN); 1391 Element main = mainApp.findExported(MAIN);
1392 ErroneousElement errorElement = null; 1392 ErroneousElement errorElement = null;
1393 if (main == null) { 1393 if (main == null) {
1394 if (analyzeOnly) { 1394 if (analyzeOnly) {
1395 if (!analyzeAll) { 1395 if (!analyzeAll) {
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
2195 int warnings = 0; 2195 int warnings = 0;
2196 int hints = 0; 2196 int hints = 0;
2197 } 2197 }
2198 2198
2199 class GenericTask extends CompilerTask { 2199 class GenericTask extends CompilerTask {
2200 final String name; 2200 final String name;
2201 2201
2202 GenericTask(this.name, Compiler compiler) 2202 GenericTask(this.name, Compiler compiler)
2203 : super(compiler); 2203 : super(compiler);
2204 } 2204 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698