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

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

Issue 2569733002: Even less reliance on Compiler.closedWorld (Closed)
Patch Set: Updated cf. comments. Created 4 years 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/graph_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/graph_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698