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

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

Issue 2585223002: Access ConstantSystem through 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 e83746345a0439110f5868a48fc8ba9e8b9b4bf3..ef9fbfac4d57507f11cfc535c68ff65eb4922f1a 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(closedWorld,
- compiler.backend, constantSystem.createDouble(node.value)));
+ return types.getConcreteTypeFor(
+ computeTypeMask(closedWorld, 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(
- closedWorld, compiler.backend, constantSystem.createInt(node.value)));
+ return types.getConcreteTypeFor(
+ computeTypeMask(closedWorld, constantSystem.createInt(node.value)));
}
T visitLiteralList(LiteralList node) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart » ('j') | pkg/compiler/lib/src/types/constants.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698