Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifZCmp()


  public void _writeOut(BytecodeContext bc) throws BytecodeException {
    GeneratorAdapter adapter = bc.getAdapter();
    adapter.visitLabel(begin);
   
    expr.writeOut(bc, Expression.MODE_VALUE);
    adapter.ifZCmp(Opcodes.IFEQ, end);
   
    body.writeOut(bc);
    adapter.visitJumpInsn(Opcodes.GOTO, begin);
   
    adapter.visitLabel(end);
View Full Code Here


    // instance of Abort
      Label abortEnd=new Label();
      adapter.loadLocal(lThrow);
      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
          adapter.loadLocal(lThrow);
          adapter.throwException();
          adapter.visitLabel(abortEnd);

View Full Code Here

       
       
       

        Label endIf = new Label();
              adapter.ifZCmp(Opcodes.IFEQ, endIf);
             
              catchBody(bc,adapter,ct,pe,lRef,true,true);
             
              adapter.visitJumpInsn(Opcodes.GOTO, endAllIf);
              adapter.visitLabel(endIf);
View Full Code Here

      adapter.loadLocal(step);
    div.visitNEQ();
      adapter.push(0D);
    div.visitEnd(bc);
    Label ifEnd=new Label();
    adapter.ifZCmp(Opcodes.IFEQ, ifEnd);
     
      // VariableReference index>=VariableInterpreter.getVariableReference(pc,@index));
      int index = adapter.newLocal(Types.VARIABLE_REFERENCE);
      adapter.loadArg(0);
      ExpressionUtil.writeOutSilent(getAttribute("index").getValue(), bc, Expression.MODE_REF);
View Full Code Here

      adapter.invokeStatic(Types.ABORT, TryCatchFinally.IS_ABORT);
      //adapter.instanceOf(Types.ABORT);
     
     
     
          adapter.ifZCmp(Opcodes.IFEQ, abortEnd);
            adapter.loadLocal(e);
            adapter.throwException();
          adapter.visitLabel(abortEnd);
       
View Full Code Here

        // if(pe.typeEqual(@type)
        adapter.loadLocal(pe);
        type.writeOut(bc, Expression.MODE_REF);
        adapter.invokeVirtual(Types.PAGE_EXCEPTION, TYPE_EQUAL);
       
        adapter.ifZCmp(Opcodes.IFEQ, endIf);
          catchBody(bc,adapter,tag,pe,true,true);
         
              adapter.visitJumpInsn(Opcodes.GOTO, endAllIfs);
             
              adapter.visitLabel(endIf);
View Full Code Here

          adapter.loadLocal(count);
        dv2.visitLT();
          adapter.loadLocal(startline);
        dv2.visitEnd(bc);
        Label end=new Label();
        adapter.ifZCmp(Opcodes.IFEQ, end);
          whileVisitor.visitContinue(bc);
        adapter.visitLabel(end);
       
        // if(endLine!=-1 && count > endLine) break;
        DecisionIntVisitor div=new DecisionIntVisitor();
View Full Code Here

          adapter.loadLocal(endline);
        div.visitNEQ();
          adapter.push(-1);
        div.visitEnd(bc);
        Label end2=new Label();
        adapter.ifZCmp(Opcodes.IFEQ, end2);
       
          DecisionIntVisitor div2 = new DecisionIntVisitor();
          div2.visitBegin();
            adapter.loadLocal(count);
          div2.visitGT();
View Full Code Here

            adapter.loadLocal(count);
          div2.visitGT();
            adapter.loadLocal(endline);
          div2.visitEnd(bc);
          Label end3=new Label();
          adapter.ifZCmp(Opcodes.IFEQ, end3);
            whileVisitor.visitBreak(bc);
          adapter.visitLabel(end3);
        adapter.visitLabel(end2);
       
        // index and item
View Full Code Here

      /*OLD
      adapter.invokeInterface(Types.QUERY, TagLoop.GO_1);
      */
      NotVisitor.visitNot(bc);
      Label _if=new Label();
      adapter.ifZCmp(Opcodes.IFEQ, _if);
        wv.visitBreak(bc);
      adapter.visitLabel(_if);
   
      // current=ni.current();
      adapter.loadLocal(tag.getNumberIterator());
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.