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 2524fdfcaf0e785fb0e1eff368976aecc6e7a96a..c588a000114a2f43a0456e72bc2e398a06605685 100644 |
--- a/pkg/compiler/lib/src/ssa/codegen.dart |
+++ b/pkg/compiler/lib/src/ssa/codegen.dart |
@@ -2136,10 +2136,9 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor { |
Element element = node.element; |
assert(element.isFunction || element.isField); |
if (element.isFunction) { |
- push(backend.emitter.isolateStaticClosureAccess(element)); |
- registry.registerGetOfStaticFunction(element); |
+ push(backend.emitter.isolateStaticClosureAccess(node.element)); |
} else { |
- push(backend.emitter.staticFieldAccess(element)); |
+ push(backend.emitter.staticFieldAccess(node.element)); |
} |
registry.registerStaticUse(element); |
} |