| Index: sdk/lib/_internal/compiler/implementation/ssa/types.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/types.dart (revision 19670)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/types.dart (working copy)
|
| @@ -82,18 +82,6 @@
|
|
|
| factory HType.fromInferredType(TypeMask mask, Compiler compiler) {
|
| if (mask == null) return HType.UNKNOWN;
|
| - if (mask.isExact) {
|
| - // Special case the list and map classes that are used as types
|
| - // for literals in the type inferrer.
|
| - if (mask.base.element == compiler.listClass) {
|
| - return HType.READABLE_ARRAY;
|
| - } else if (mask.base.element == compiler.mapClass) {
|
| - // TODO(ngeoffray): get the actual implementation of a map
|
| - // literal.
|
| - return new HType.nonNullSubtype(
|
| - compiler.mapLiteralClass.rawType, compiler);
|
| - }
|
| - }
|
| return new HType.fromMask(mask, compiler);
|
| }
|
|
|
| @@ -110,6 +98,12 @@
|
| compiler);
|
| }
|
|
|
| + factory HType.inferredTypeForSelector(Selector selector, Compiler compiler) {
|
| + return new HType.fromInferredType(
|
| + compiler.typesTask.getGuaranteedTypeOfSelector(selector),
|
| + compiler);
|
| + }
|
| +
|
| factory HType.inferredForNode(Element owner, Node node, Compiler compiler) {
|
| return new HType.fromInferredType(
|
| compiler.typesTask.getGuaranteedTypeOfNode(owner, node),
|
|
|