Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index 06bc95bda9e40b8f08afc2e0aac410d7b2ec7f16..c82f86e4d2c0d103a7b5f69d06522e0ef47e7700 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -610,7 +610,10 @@ abstract class Compiler { |
reporter.log('Compiling...'); |
phase = PHASE_COMPILING; |
- Enqueuer codegenEnqueuer = startCodegen(closedWorld); |
+ Enqueuer codegenEnqueuer = enqueuer.createCodegenEnqueuer(closedWorld); |
+ _codegenWorldBuilder = codegenEnqueuer.worldBuilder; |
+ codegenEnqueuer.applyImpact( |
+ backend.onCodegenStart(closedWorld, _codegenWorldBuilder)); |
if (compileAll) { |
libraryLoader.libraries.forEach((LibraryEntity library) { |
codegenEnqueuer.applyImpact(computeImpactForLibrary(library)); |
@@ -633,14 +636,6 @@ abstract class Compiler { |
checkQueues(resolutionEnqueuer, codegenEnqueuer); |
}); |
- Enqueuer startCodegen(ClosedWorld closedWorld) { |
- Enqueuer codegenEnqueuer = enqueuer.createCodegenEnqueuer(closedWorld); |
- _codegenWorldBuilder = codegenEnqueuer.worldBuilder; |
- codegenEnqueuer |
- .applyImpact(backend.onCodegenStart(closedWorld, _codegenWorldBuilder)); |
- return codegenEnqueuer; |
- } |
- |
/// Perform the steps needed to fully end the resolution phase. |
ClosedWorldRefiner closeResolution() { |
phase = PHASE_DONE_RESOLVING; |