src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/Gen.java
changeset 59285 7799a51dbe30
parent 55340 ef577fa0dd10
equal deleted inserted replaced
59284:88502b1cf76f 59285:7799a51dbe30
  2214     }
  2214     }
  2215 
  2215 
  2216     public void visitTypeTest(JCInstanceOf tree) {
  2216     public void visitTypeTest(JCInstanceOf tree) {
  2217         genExpr(tree.expr, tree.expr.type).load();
  2217         genExpr(tree.expr, tree.expr.type).load();
  2218         setTypeAnnotationPositions(tree.pos);
  2218         setTypeAnnotationPositions(tree.pos);
  2219         code.emitop2(instanceof_, makeRef(tree.pos(), tree.clazz.type));
  2219         code.emitop2(instanceof_, makeRef(tree.pos(), tree.pattern.type));
  2220         result = items.makeStackItem(syms.booleanType);
  2220         result = items.makeStackItem(syms.booleanType);
  2221     }
  2221     }
  2222 
  2222 
  2223     public void visitIndexed(JCArrayAccess tree) {
  2223     public void visitIndexed(JCArrayAccess tree) {
  2224         genExpr(tree.indexed, tree.indexed.type).load();
  2224         genExpr(tree.indexed, tree.indexed.type).load();