Chromium Code Reviews| Index: dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
| diff --git a/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
| index de0592bf213c3ee21daf25628e90cbb644ad198d..e8a991006eede407d83704e861f004971c3f3a75 100644 |
| --- a/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
| +++ b/dart/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
| @@ -321,21 +321,24 @@ class CodeEmitterTask extends CompilerTask { |
| backend.generatedCode.keys.forEach(addSurroundingLibraryToSet); |
| neededClasses.forEach(addSurroundingLibraryToSet); |
| -} |
| + } |
| + |
| + void computeNeeds() { |
|
karlklose
2014/12/01 10:13:31
Perhaps you can find a better name than "needs". H
ahe
2014/12/01 10:28:35
Since most of the methods are called "computedNeed
ahe
2014/12/01 13:58:52
Discussed offline: I've renamed the method to comp
|
| + // Compute the required type checks to know which classes need a |
| + // 'is$' method. |
| + typeTestEmitter.computeRequiredTypeChecks(); |
| + |
| + computeNeededDeclarations(); |
| + computeNeededConstants(); |
| + computeNeededStatics(); |
| + computeNeededLibraries(); |
| + } |
| void assembleProgram() { |
| measure(() { |
| emitter.invalidateCaches(); |
| - // Compute the required type checks to know which classes need a |
| - // 'is$' method. |
| - typeTestEmitter.computeRequiredTypeChecks(); |
| - |
| - computeNeededDeclarations(); |
| - computeNeededConstants(); |
| - computeNeededStatics(); |
| - computeNeededLibraries(); |
| - |
| + computeNeeds(); |
| Program program; |
| if (USE_NEW_EMITTER) { |