| Index: lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
|
| index eaaa0740a72e1bf427e7970f50da35a079550235..fccab573d47b1e3f9db95a59e5a131da30696344 100644
|
| --- a/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -1465,16 +1465,13 @@ class SsaCodeGenerator implements HVisitor {
|
| }
|
|
|
| void visitIs(HIs node) {
|
| - Type type = node.typeName;
|
| - Element element = type.element;
|
| + Element element = node.typeExpression;
|
| 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 = compiler.objectClass;
|
| + ClassElement objectClass = coreLibrary.find(const SourceString('Object'));
|
| HInstruction input = node.expression;
|
| if (node.nullOk) {
|
| beginExpression(JSPrecedence.LOGICAL_OR_PRECEDENCE);
|
|
|