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

Unified Diff: frog/leg/ssa/builder.dart

Issue 9382041: Support getting of static functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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: frog/leg/ssa/builder.dart
diff --git a/frog/leg/ssa/builder.dart b/frog/leg/ssa/builder.dart
index 359e7cd95a50864237fe4af110e85a182d552111..7f6b019f27eae44a5f93a8266e80a956efff30c2 100644
--- a/frog/leg/ssa/builder.dart
+++ b/frog/leg/ssa/builder.dart
@@ -1164,7 +1164,8 @@ class SsaBuilder implements Visitor {
push(new HInvokeDynamicGetter(selector, null, getterName, receiver));
}
} else if (Elements.isStaticOrTopLevelFunction(element)) {
- compiler.unimplemented("SsaBuilder.visitSend with static", node: send);
+ push(new HStatic(element));
+ compiler.registerGetOfStaticFunction(element);
} else {
stack.add(localsHandler.readLocal(element));
}

Powered by Google App Engine
This is Rietveld 408576698