| Index: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| index be50b5a2bbcb10938fa7f5f68fa06dd375db38be..2aa87485cf8ad377310f6639d51b37694c649371 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
|
| @@ -415,16 +415,16 @@ class CodeEmitterTask extends CompilerTask {
|
|
|
| computeAllNeededEntities();
|
|
|
| - Program program =
|
| - new ProgramBuilder(compiler, namer, this).buildProgram();
|
| - return emitter.emitProgram(program);
|
| + ProgramBuilder programBuilder = new ProgramBuilder(compiler, namer, this);
|
| + return emitter.emitProgram(programBuilder);
|
| });
|
| }
|
| }
|
|
|
| abstract class Emitter {
|
| - /// Emits [program] and returns the size of the generated output.
|
| - int emitProgram(Program program);
|
| + /// Uses the [programBuilder] to generate a model of the program, emits
|
| + /// the program, and returns the size of the generated output.
|
| + int emitProgram(ProgramBuilder programBuilder);
|
|
|
| /// Returns the JS function that must be invoked to get the value of the
|
| /// lazily initialized static.
|
|
|