Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 12525007: Record dependency information to implement first version of dependency (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698