| Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| index b0ffbd6106c27caa29eb8104ff07c5fdbf1548ce..f4c39663a33c2a3062c5a5bb17299d8fdde4d0a4 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
|
| @@ -1594,12 +1594,12 @@ class CodeEmitterTask extends CompilerTask {
|
| }
|
| }
|
|
|
| - void emitStaticFunctionGetters(CodeBuffer buffer) {
|
| + void emitStaticFunctionGetters(CodeBuffer eagerBuffer) {
|
| Set<FunctionElement> functionsNeedingGetter =
|
| compiler.codegenWorld.staticFunctionsNeedingGetter;
|
| for (FunctionElement element in
|
| Elements.sortedByPosition(functionsNeedingGetter)) {
|
| - // TODO(ahe): Defer loading of these getters.
|
| + CodeBuffer buffer = bufferForElement(element, eagerBuffer);
|
|
|
| // The static function does not have the correct name. Since
|
| // [addParameterStubs] use the name to create its stubs we simply
|
| @@ -2640,6 +2640,7 @@ if (typeof document !== "undefined" && document.readyState !== "complete") {
|
|
|
| emitClosureClassIfNeeded(mainBuffer);
|
|
|
| + addComment('Bound closures', mainBuffer);
|
| // Now that we have emitted all classes, we know all the bound
|
| // closures that will be needed.
|
| for (jsAst.Node node in boundClosures) {
|
|
|