Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1482 assert(mainFunction != null); | 1482 assert(mainFunction != null); |
| 1483 phase = PHASE_DONE_RESOLVING; | 1483 phase = PHASE_DONE_RESOLVING; |
| 1484 | 1484 |
| 1485 world.populate(); | 1485 world.populate(); |
| 1486 // Compute whole-program-knowledge that the backend needs. (This might | 1486 // Compute whole-program-knowledge that the backend needs. (This might |
| 1487 // require the information computed in [world.populate].) | 1487 // require the information computed in [world.populate].) |
| 1488 backend.onResolutionComplete(); | 1488 backend.onResolutionComplete(); |
| 1489 | 1489 |
| 1490 deferredLoadTask.onResolutionComplete(mainFunction); | 1490 deferredLoadTask.onResolutionComplete(mainFunction); |
| 1491 | 1491 |
| 1492 log('Building IR...'); | 1492 log('Building IR...'); |
|
floitsch
2014/11/13 14:30:55
move log into if.
sigurdm
2014/11/13 14:43:41
Done.
| |
| 1493 irBuilder.buildNodes(); | 1493 if (const bool.fromEnvironment('USE_NEW_BACKEND')) { |
| 1494 irBuilder.buildNodes(); | |
| 1495 } | |
| 1494 | 1496 |
| 1495 log('Inferring types...'); | 1497 log('Inferring types...'); |
| 1496 typesTask.onResolutionComplete(mainFunction); | 1498 typesTask.onResolutionComplete(mainFunction); |
| 1497 | 1499 |
| 1498 if (stopAfterTypeInference) return; | 1500 if (stopAfterTypeInference) return; |
| 1499 | 1501 |
| 1500 log('Compiling...'); | 1502 log('Compiling...'); |
| 1501 phase = PHASE_COMPILING; | 1503 phase = PHASE_COMPILING; |
| 1502 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. | 1504 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. |
| 1503 if (hasIsolateSupport) { | 1505 if (hasIsolateSupport) { |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2175 int warnings = 0; | 2177 int warnings = 0; |
| 2176 int hints = 0; | 2178 int hints = 0; |
| 2177 } | 2179 } |
| 2178 | 2180 |
| 2179 class GenericTask extends CompilerTask { | 2181 class GenericTask extends CompilerTask { |
| 2180 final String name; | 2182 final String name; |
| 2181 | 2183 |
| 2182 GenericTask(this.name, Compiler compiler) | 2184 GenericTask(this.name, Compiler compiler) |
| 2183 : super(compiler); | 2185 : super(compiler); |
| 2184 } | 2186 } |
| OLD | NEW |