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

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: Updated cf. comments. 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..f60b4c583d09fe561fb5874fc12c3cc087c31579 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 computeTypeMask;
import '../universe/universe.dart'
show Selector,
SideEffects,
@@ -807,7 +809,7 @@ 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 = computeTypeMask(compiler, value);
assert(TypeMask.assertIsNormalized(refinedType, classWorld));
type = new NarrowTypeInformation(type, refinedType);
types.allocatedTypes.add(type);
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | pkg/compiler/lib/src/js_backend/constant_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698