| Index: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
|
| index a8107f4cf0838ec769b25e6dcfd72be74710295f..5b1005e68efaea5bfe4ea45b4f1441d7379a9d53 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart
|
| @@ -1227,7 +1227,7 @@ abstract class HInstruction implements Spannable {
|
| // instructions with generics. It has the generic type context
|
| // available.
|
| assert(type.kind != TypeKind.TYPE_VARIABLE);
|
| - assert(type.treatAsRaw || type.kind == TypeKind.FUNCTION);
|
| + assert(type.treatAsRaw || type.isFunctionType);
|
| if (type.isDynamic) return this;
|
| // The type element is either a class or the void element.
|
| Element element = type.element;
|
| @@ -2496,12 +2496,12 @@ class HTypeConversion extends HCheck {
|
| }
|
|
|
| bool get hasTypeRepresentation {
|
| - return typeExpression.kind == TypeKind.INTERFACE && inputs.length > 1;
|
| + return typeExpression.isInterfaceType && inputs.length > 1;
|
| }
|
| HInstruction get typeRepresentation => inputs[1];
|
|
|
| bool get hasContext {
|
| - return typeExpression.kind == TypeKind.FUNCTION && inputs.length > 1;
|
| + return typeExpression.isFunctionType && inputs.length > 1;
|
| }
|
| HInstruction get context => inputs[1];
|
|
|
|
|