Examples of IFNE


Examples of com.sun.org.apache.bcel.internal.generic.IFNE

        //!!! call isNaN
        // Compare it to itself to see if NaN
        il.append(new DLOAD(local.getIndex()));
        local.setEnd(il.append(new DLOAD(local.getIndex())));
        il.append(DCMPG);
        flowlist.add(il.append(new IFNE(null)));        // NaN != NaN
        return flowlist;
    }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

            _right.translate(classGen, methodGen);

            if (tleft instanceof RealType) {
                il.append(DCMPG);
        _falseList.add(il.append(_op == Operators.EQ ?
                                         (BranchInstruction)new IFNE(null) :
                                         (BranchInstruction)new IFEQ(null)));
            }
            else {
            _falseList.add(il.append(_op == Operators.EQ ?
                                         (BranchInstruction)new IF_ICMPNE(null) :
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

                tleft.translateTo(classGen, methodGen, Type.Real);
                _right.translate(classGen, methodGen);

                il.append(DCMPG);
        falsec = il.append(_op == Operators.EQ ?
                                   (BranchInstruction) new IFNE(null) :
                                   (BranchInstruction) new IFEQ(null));
                il.append(ICONST_1);
                truec = il.append(new GOTO(null));
                falsec.setTarget(il.append(ICONST_0));
                truec.setTarget(il.append(NOP));
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

        else
        {
            il.append(new INVOKEVIRTUAL(lookupKey));
        }

        _trueList.add(il.append(new IFNE(null)));
        _falseList.add(il.append(new GOTO(null)));
    }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

            il.append(methodGen.loadDOM());
            il.append(SWAP);
            il.append(new INVOKEINTERFACE(check, 2));

            // Need to allow for long jumps here
            final BranchHandle icmp = il.append(new IFNE(null));
            _falseList.add(il.append(new GOTO_W(null)));
            icmp.setTarget(il.append(NOP));
        }
        else if (_nodeType == DTM.ATTRIBUTE_NODE) {
            final int check = cpg.addInterfaceMethodref(DOM_INTF,
                                                        "isAttribute", "(I)Z");
            il.append(methodGen.loadDOM());
            il.append(SWAP);
            il.append(new INVOKEINTERFACE(check, 2));

            // Need to allow for long jumps here
            final BranchHandle icmp = il.append(new IFNE(null));
            _falseList.add(il.append(new GOTO_W(null)));
            icmp.setTarget(il.append(NOP));
        }
        else {
            // context node is on the stack
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

    case ARRAY:
      ilc.addBranch(new IF_ACMPNE(null),mi) ;
      return ;
    case LONG:
      ilc.add(InstructionConstants.LCMP) ;
      ilc.addBranch(new IFNE(null),mi) ;
      return ;
    case DOUBLE:
      ilc.add(InstructionConstants.DCMPL) ;
      ilc.addBranch(new IFNE(null),mi) ;
      return ;
    case FLOAT:
      ilc.add(InstructionConstants.FCMPL) ;
      ilc.addBranch(new IFNE(null),mi) ;
      return ;
    default:
      throw new IllegalArgumentException() ;
    }
  }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

    case INT:
    case SHORT:
    case BYTE:
    case CHAR:
    case BOOLEAN:
      ilc.addBranch(new IFNE(null), markInst) ;
      return ;
    case LONG:
      ilc.add(ilc.getInstructionFactory().createConstant(Long.valueOf(0)));
      ilc.add(InstructionConstants.LCMP) ;
      ilc.addBranch(new IFNE(null), markInst) ;
      return ;
    case DOUBLE:
      ilc.add(ilc.getInstructionFactory().createConstant(Double.valueOf(0))) ;
      ilc.add(InstructionConstants.DCMPL) ;
      ilc.addBranch(new IFNE(null), markInst) ;
      return ;
    case FLOAT:
      ilc.add(ilc.getInstructionFactory().createConstant(Float.valueOf(0))) ;
      ilc.add(InstructionConstants.FCMPL) ;
      ilc.addBranch(new IFNE(null), markInst) ;
      return ;
    default:
      throw new IllegalArgumentException() ;
    }
  }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.IFNE

            il.append(methodGen.loadDOM());
            il.append(SWAP);
            il.append(new INVOKEINTERFACE(check, 2));

            // Need to allow for long jumps here
            final BranchHandle icmp = il.append(new IFNE(null));
            _falseList.add(il.append(new GOTO_W(null)));
            icmp.setTarget(il.append(NOP));
        }
        else if (_nodeType == DTM.ATTRIBUTE_NODE) {
            final int check = cpg.addInterfaceMethodref(DOM_INTF,
                                                        "isAttribute", "(I)Z");
            il.append(methodGen.loadDOM());
            il.append(SWAP);
            il.append(new INVOKEINTERFACE(check, 2));

            // Need to allow for long jumps here
            final BranchHandle icmp = il.append(new IFNE(null));
            _falseList.add(il.append(new GOTO_W(null)));
            icmp.setTarget(il.append(NOP));
        }
        else {
            // context node is on the stack
View Full Code Here

Examples of org.apache.bcel.generic.IFNE

     * @param src object responsible for generating branch
     * @return wrapper for appended conditional branch
     */
    public BranchWrapper appendIFNE(Object src) {
        verifyStack("int");
        BranchHandle hand = m_instructionList.append(new IFNE(null));
        setTarget(hand);
        m_stackState.pop();
        return new BranchWrapper(hand, m_stackState.toArray(), src);
    }
View Full Code Here

Examples of org.apache.bcel.generic.IFNE

       
  nextNode.setTarget(il.append(methodGen.loadIterator()));
  il.append(methodGen.nextNode());
  il.append(DUP);
  il.append(methodGen.storeCurrentNode());
  il.append(new IFNE(loop));

  // Restore current DOM (if result tree was used instead for this loop)
  if ((_type != null) && (_type instanceof ResultTreeType)) {
      il.append(methodGen.storeDOM());     
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.