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

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

Issue 574683002: Use ConstExp for storing constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes and further implementation. Created 6 years, 3 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/simple_types_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
index 8be465c988de1479f01122d7beba06439ffaaf6b..dea77ff12000b85356cd53b22ff9b8defdeed855 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
@@ -984,8 +984,8 @@ class SimpleTypeInferrerVisitor<T>
&& compiler.world.fieldNeverChanges(element)) {
var constant =
compiler.backend.constants.getConstantForVariable(element);
- if (constant != null && constant.isInt) {
- return constant.value;
+ if (constant != null && constant.value.isInt) {
+ return constant.value.value;
}
}
return null;

Powered by Google App Engine
This is Rietveld 408576698