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 227f8507ba09d0ebcfd24a508afdd20d7408c01f..7826fd1c57a46f063cdbca624c18b7be6eb1b367 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart |
@@ -1609,12 +1609,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 |
@@ -2666,6 +2666,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) { |