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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart

Issue 221873002: Compute frontend/backend specific constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 6 years, 8 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
Index: sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
index cfe1661b5c587ef5a65b2e33b4179fbf00db2786..ae3bf166ac7bd7d554c6934b5bae5afa5df837ad 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/type_graph_inferrer.dart
@@ -643,8 +643,8 @@ class TypeGraphInferrerEngine
if (type is! ListTypeInformation) {
// For non-container types, the constant handler does
// constant folding that could give more precise results.
- Constant value =
- compiler.constantHandler.getConstantForVariable(element);
+ Constant value = compiler.backend.constants
+ .getConstantForVariable(element);
if (value != null) {
if (value.isFunction) {
FunctionConstant functionConstant = value;

Powered by Google App Engine
This is Rietveld 408576698