| Index: lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
|
| index fccab573d47b1e3f9db95a59e5a131da30696344..eaaa0740a72e1bf427e7970f50da35a079550235 100644
|
| --- a/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -1465,13 +1465,16 @@ class SsaCodeGenerator implements HVisitor {
|
| }
|
|
|
| void visitIs(HIs node) {
|
| - Element element = node.typeExpression;
|
| + Type type = node.typeName;
|
| + Element element = type.element;
|
| if (element.kind === ElementKind.TYPE_VARIABLE) {
|
| compiler.unimplemented("visitIs for type variables");
|
| + } else if (element.kind === ElementKind.TYPEDEF) {
|
| + compiler.unimplemented("visitIs for typedefs");
|
| }
|
| compiler.registerIsCheck(element);
|
| LibraryElement coreLibrary = compiler.coreLibrary;
|
| - ClassElement objectClass = coreLibrary.find(const SourceString('Object'));
|
| + ClassElement objectClass = compiler.objectClass;
|
| HInstruction input = node.expression;
|
| if (node.nullOk) {
|
| beginExpression(JSPrecedence.LOGICAL_OR_PRECEDENCE);
|
|
|