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

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

Issue 756903005: Remove computeMask from ConstantValue. (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/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 ae3427a55e791a355daa0ad0478488cb874ccdeb..3b075ba4c41dc3345388c460f6d0325e7e6772f6 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart
@@ -35,6 +35,8 @@ import '../types/types.dart'
TypeMask,
TypesInferrer,
ValueTypeMask;
+import '../types/constants.dart'
+ show COMPUTE_TYPE_MASK;
import '../universe/universe.dart'
show Selector,
SideEffects,
@@ -807,7 +809,8 @@ class TypeGraphInferrerEngine
// Although we might find a better type, we have to keep
// the old type around to ensure that we get a complete view
// of the type graph and do not drop any flow edges.
- TypeMask refinedType = value.computeMask(compiler);
+ TypeMask refinedType =
+ value.accept(COMPUTE_TYPE_MASK, compiler);
assert(TypeMask.assertIsNormalized(refinedType, classWorld));
type = new NarrowTypeInformation(type, refinedType);
types.allocatedTypes.add(type);

Powered by Google App Engine
This is Rietveld 408576698