| Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| index 4d590675497a7155c9a80b04b9eccb11a7b21735..96ebf53572b75d391023167e86ad78d25799829a 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
|
| @@ -1774,22 +1774,20 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
|
| stack.add(graph.addConstant(constant, closedWorld));
|
| return;
|
| }
|
| - if (type is ir.TypeParameterType) {
|
| - // TODO(sra): Convert the type logic here to use ir.DartType.
|
| - ResolutionDartType dartType = astAdapter.getDartType(type);
|
| - dartType = localsHandler.substInContext(dartType);
|
| - HInstruction value = typeBuilder.analyzeTypeArgument(
|
| - dartType, sourceElement,
|
| - sourceInformation: null);
|
| - _pushStaticInvocation(astAdapter.runtimeTypeToString,
|
| - <HInstruction>[value], commonMasks.stringType);
|
| - _pushStaticInvocation(astAdapter.createRuntimeType, <HInstruction>[pop()],
|
| - astAdapter.createRuntimeTypeReturnType);
|
| - return;
|
| - }
|
| - // TODO(27394): Function types observed. Where are they from?
|
| - defaultExpression(typeLiteral);
|
| - return;
|
| + // For other types (e.g. TypeParameterType, function types from expanded
|
| + // typedefs), look-up or construct a reified type representation and convert
|
| + // to a RuntimeType.
|
| +
|
| + // TODO(sra): Convert the type logic here to use ir.DartType.
|
| + ResolutionDartType dartType = astAdapter.getDartType(type);
|
| + dartType = localsHandler.substInContext(dartType);
|
| + HInstruction value = typeBuilder.analyzeTypeArgument(
|
| + dartType, sourceElement,
|
| + sourceInformation: null);
|
| + _pushStaticInvocation(astAdapter.runtimeTypeToString,
|
| + <HInstruction>[value], commonMasks.stringType);
|
| + _pushStaticInvocation(astAdapter.createRuntimeType, <HInstruction>[pop()],
|
| + astAdapter.createRuntimeTypeReturnType);
|
| }
|
|
|
| @override
|
|
|