Examples of iinc()


Examples of anvil.codec.Code.iinc()

          new Node() {
            public void compile(ByteCompiler context, int operation)
            {
              Code code_ = context.getCode();
              code_.iload(l_index);
              code_.iinc(l_index, 1);
              code_.invokestatic(code_.getPool().addMethodRef(
                context.TYPE_ANY, "create", "(I)Lanvil/core/Any;"));
            }
          })).compile(context, Node.GET);
        code.pop();
View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.iinc()

/*  92 */       for (int i = 0; i < setters.length; i++) {
/*  93 */         if (setters[i] != null) {
/*  94 */           MethodInfo setter = ReflectUtils.getMethodInfo(setters[i]);
/*  95 */           int diff = i - lastIndex;
/*  96 */           if (diff > 0) {
/*  97 */             e.iinc(index, diff);
/*  98 */             lastIndex = i;
/*     */           }
/* 100 */           e.dup2();
/* 101 */           e.aaload(i);
/* 102 */           e.unbox(setter.getSignature().getArgumentTypes()[0]);
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.iinc()

            ca.astore(3);
            // so here we have the array index on top of the stack, followed by the array
            CodeLocation loopBegin = ca.mark();
            BranchEnd loopEnd = ca.ifeq();
            ca.dup();
            ca.iinc(0, -1);
            ca.iload(0); // load the array index into the stack
            ca.dupX1(); // index, array, index, array
            ca.aaload();
            ca.checkcast("java.lang.reflect.Method");
            ca.dup();
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.iinc()

            ca.astore(3);
            // so here we have the array index on top of the stack, followed by the array
            CodeLocation loopBegin = ca.mark();
            BranchEnd loopEnd = ca.ifeq();
            ca.dup();
            ca.iinc(0, -1);
            ca.iload(0); // load the array index into the stack
            ca.dupX1(); // index, array, index, array
            ca.aaload();
            ca.checkcast("java.lang.reflect.Method");
            ca.dup();
View Full Code Here

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

    mg.invokeConstructor(Type.getType("Lorg/eclipse/swt/widgets/Control;"),
        Method.getMethod("org.eclipse.swt.graphics.Color getForeground ()"));
    mg.returnValue();
   
    mg.mark(LABEL_SKIP_CALL_TO_SUPER);
    mg.iinc(2, 1);
   
    mg.mark(LABEL_LOOP_CMP);
    mg.loadLocal(2);
    mg.loadLocal(1);
    mg.arrayLength();
View Full Code Here

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

      mv.arrayLoad( sub.classType() );
      mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, ARRAYLIST_CLASS.getInternalName(), "add", "(Ljava/lang/Object;)Z" );
      mv.pop();

      // } // for
      mv.iinc( l_i, 1 );
      mv.mark( test );
      mv.loadLocal( l_i );
      mv.loadLocal( l_len );
      mv.ifCmp( Type.INT_TYPE, mv.LT, again );
View Full Code Here

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

      throw new BytecodeException("there is no variable with name ["+operation+"] in the enviroment", getLine());
   
    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
View Full Code Here

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

   
    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
View Full Code Here

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

    GeneratorAdapter a = bc.getAdapter();
   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
  }
View Full Code Here

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

   
    if(operation.startsWith("pos")) a.loadLocal(var.intValue());
    if("preDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("posDecrement".equals(operation))a.iinc(var.intValue(), -1);
    else if("preIncrement".equals(operation))a.iinc(var.intValue(), 1);
    else if("posIncrement".equals(operation))a.iinc(var.intValue(), 1);
    if(operation.startsWith("pre")) a.loadLocal(var.intValue());
   
    return a.getLocalType(var.intValue());
  }
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.