Package com.sun.org.apache.bcel.internal.generic

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


            _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

                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

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

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

            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

    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

    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

            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

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

TOP

Related Classes of com.sun.org.apache.bcel.internal.generic.IFNE

Copyright © 2018 www.massapicom. 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.