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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_propagation.dart

Issue 804333002: Add CoreTypes interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/cps_ir/type_propagation.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
index b2db69c01a5f678cf880519a7a7a1eb520676ffc..fc6376a440ce820ab76330914d013e984b62ef0a 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -658,7 +658,7 @@ class _ConstPropagationVisitor<T> extends Visitor {
types.InterfaceType checkedType = node.type;
ConstantValue constant = cell.constant;
// TODO(karlklose): remove call to computeType.
- types.DartType constantType = constant.computeType(compiler);
+ types.DartType constantType = constant.getType(compiler.coreTypes);
T type = typeSystem.boolType;
_AbstractValue result;

Powered by Google App Engine
This is Rietveld 408576698