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

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

Issue 3009693002: Handle int/double literals in inference (Closed)
Patch Set: Updated cf. comments Created 3 years, 4 months 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 | « no previous file | pkg/compiler/lib/src/inferrer/builder_kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/builder.dart
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart
index ca683a42ec617ca29eef9d6de9614232dd81de20..900f45376e5a9c99424617e9af3a4b27bce34854 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -219,7 +219,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
}
TypeInformation visitLiteralDouble(ast.LiteralDouble node) {
- ConstantSystem constantSystem = compiler.backend.constantSystem;
+ ConstantSystem constantSystem = closedWorld.constantSystem;
// The JavaScript backend may turn this literal into an integer at
// runtime.
return types.getConcreteTypeFor(
@@ -227,7 +227,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
}
TypeInformation visitLiteralInt(ast.LiteralInt node) {
- ConstantSystem constantSystem = compiler.backend.constantSystem;
+ ConstantSystem constantSystem = closedWorld.constantSystem;
// The JavaScript backend may turn this literal into a double at
// runtime.
return types.getConcreteTypeFor(
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698