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

Unified Diff: pkg/compiler/lib/src/ssa/codegen.dart

Issue 722163002: Add support for static calls to the cps pipeline code generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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: pkg/compiler/lib/src/ssa/codegen.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
index 8731e5defdff44e2a55eb9366e6f8eccb4190bc5..9ec009aaa21c0f10d35efc950a252f976758e18a 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -1637,10 +1637,9 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
visitInvokeStatic(HInvokeStatic node) {
Element element = node.element;
- ClassElement cls = element.enclosingClass;
List<DartType> instantiatedTypes = node.instantiatedTypes;
- registry.registerStaticUse(element);
+ registry.registerStaticInvocation(element);
if (instantiatedTypes != null && !instantiatedTypes.isEmpty) {
instantiatedTypes.forEach((type) {
@@ -1654,7 +1653,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
visitInvokeSuper(HInvokeSuper node) {
Element superMethod = node.element;
- registry.registerStaticUse(superMethod);
+ registry.registerSuperInvocation(superMethod);
ClassElement superClass = superMethod.enclosingClass;
if (superMethod.kind == ElementKind.FIELD) {
String fieldName = backend.namer.instanceFieldPropertyName(superMethod);

Powered by Google App Engine
This is Rietveld 408576698