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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart

Issue 2577423002: Further reduce use of Compiler.closedWorld. (Closed)
Patch Set: 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
Index: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index 6a5d7f758df35298c5e19014f8e90bda047ca49f..e83746345a0439110f5868a48fc8ba9e8b9b4bf3 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -861,16 +861,16 @@ abstract class InferrerVisitor<T, E extends MinimalInferrerEngine<T>>
ConstantSystem constantSystem = compiler.backend.constantSystem;
// The JavaScript backend may turn this literal into an integer at
// runtime.
- return types.getConcreteTypeFor(
- computeTypeMask(compiler, constantSystem.createDouble(node.value)));
+ return types.getConcreteTypeFor(computeTypeMask(closedWorld,
+ compiler.backend, constantSystem.createDouble(node.value)));
}
T visitLiteralInt(LiteralInt node) {
ConstantSystem constantSystem = compiler.backend.constantSystem;
// The JavaScript backend may turn this literal into a double at
// runtime.
- return types.getConcreteTypeFor(
- computeTypeMask(compiler, constantSystem.createInt(node.value)));
+ return types.getConcreteTypeFor(computeTypeMask(
+ closedWorld, compiler.backend, constantSystem.createInt(node.value)));
}
T visitLiteralList(LiteralList node) {
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698