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

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

Issue 1919143002: Store constant variable initializers in elements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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: pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
index 1cfc52a9c5b7015a64355a3361d728424dcb588f..e6529b46c895ef05a19eb25816e33efd161e5ebb 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
@@ -851,7 +851,8 @@ class TypeGraphInferrerEngine
// For non-container types, the constant handler does
// constant folding that could give more precise results.
ConstantValue value =
- compiler.backend.constants.getConstantValueForVariable(element);
+ compiler.backend.constants.getConstantValue(
+ fieldElement.constant);
if (value != null) {
if (value.isFunction) {
FunctionConstantValue functionConstant = value;

Powered by Google App Engine
This is Rietveld 408576698