Index: pkg/compiler/lib/src/ssa/codegen_helpers.dart |
diff --git a/pkg/compiler/lib/src/ssa/codegen_helpers.dart b/pkg/compiler/lib/src/ssa/codegen_helpers.dart |
index 04fdb11aac35797024885dbec220780202708e6c..6058b66e92ca7c26c766712662ba396f931d11de 100644 |
--- a/pkg/compiler/lib/src/ssa/codegen_helpers.dart |
+++ b/pkg/compiler/lib/src/ssa/codegen_helpers.dart |
@@ -17,14 +17,13 @@ import 'nodes.dart'; |
*/ |
class SsaInstructionSelection extends HBaseVisitor { |
final Compiler compiler; |
+ final ClosedWorld closedWorld; |
HGraph graph; |
- SsaInstructionSelection(this.compiler); |
+ SsaInstructionSelection(this.compiler, this.closedWorld); |
JavaScriptBackend get backend => compiler.backend; |
- ClosedWorld get closedWorld => compiler.closedWorld; |
- |
void visitGraph(HGraph graph) { |
this.graph = graph; |
visitDominatorTree(graph); |
@@ -106,7 +105,7 @@ class SsaInstructionSelection extends HBaseVisitor { |
HInstruction visitInvokeSuper(HInvokeSuper node) { |
if (node.isInterceptedCall) { |
- TypeMask mask = node.getDartReceiver(compiler).instructionType; |
+ TypeMask mask = node.getDartReceiver(closedWorld).instructionType; |
tryReplaceInterceptorWithDummy(node, node.selector, mask); |
} |
return node; |