Package org.objectweb.asm

Examples of org.objectweb.asm.MethodVisitor.visitLabel()


    // increment the vector index counter and loop
    mv.visitLabel(l9);
    mv.visitIincInsn(counterLocal, 1);
    mv.visitJumpInsn(GOTO, l4);

    mv.visitLabel(l5);

    int numColsLocal = method.reserveLocal(2);
    // calculate num cols (length / num rows)
    matrix.pushLength(method);
    mv.visitVarInsn(ILOAD, numRowsLocal);
View Full Code Here


    mv.visitInsn(ICONST_0);
    mv.visitVarInsn(ISTORE, counterLocal);

    // check loop
    Label l11 = new Label();
    mv.visitLabel(l11);
    mv.visitVarInsn(ILOAD, counterLocal);
    mv.visitVarInsn(ILOAD, numRowsLocal);
    Label l12 = new Label();
    mv.visitJumpInsn(IF_ICMPEQ, l12);
View Full Code Here

    Label l12 = new Label();
    mv.visitJumpInsn(IF_ICMPEQ, l12);


    Label l13 = new Label();
    mv.visitLabel(l13);
    mv.visitVarInsn(ALOAD, meansLocal);
    mv.visitVarInsn(ILOAD, counterLocal);
    mv.visitInsn(DUP2);
    // load the means[i] onto stack
    mv.visitInsn(DALOAD);
View Full Code Here

    // store back into means[]
    mv.visitInsn(DASTORE);
    Label l14 = new Label();

    mv.visitLabel(l14);
    mv.visitIincInsn(counterLocal, 1);
    mv.visitJumpInsn(GOTO, l11);
    mv.visitLabel(l12);

    mv.visitVarInsn(ALOAD, meansLocal);
View Full Code Here

    Label l14 = new Label();

    mv.visitLabel(l14);
    mv.visitIincInsn(counterLocal, 1);
    mv.visitJumpInsn(GOTO, l11);
    mv.visitLabel(l12);

    mv.visitVarInsn(ALOAD, meansLocal);
    mv.visitInsn(ARETURN);
  }
}
View Full Code Here

    int counterLocal = method.reserveLocal(1);
    mv.visitInsn(ICONST_0);
    mv.visitVarInsn(ISTORE, counterLocal);

    Label l3 = new Label();
    mv.visitLabel(l3);
    mv.visitVarInsn(ILOAD, counterLocal);
    mv.visitVarInsn(ILOAD, lengthLocal);

    Label l4 = new Label();
    mv.visitJumpInsn(IF_ICMPEQ, l4);
View Full Code Here

    Label l4 = new Label();
    mv.visitJumpInsn(IF_ICMPEQ, l4);

    Label l5 = new Label();
    mv.visitLabel(l5);

    // load the sum on to the stack, and the next value
    mv.visitVarInsn(DLOAD, sumLocal);
    mv.visitVarInsn(ILOAD, counterLocal);
    accessor.pushDouble(method);
View Full Code Here

    // add the two values and store back into sum
    mv.visitInsn(DADD);
    mv.visitVarInsn(DSTORE, sumLocal);

    Label l6 = new Label();
    mv.visitLabel(l6);
    mv.visitIincInsn(counterLocal, 1);
    mv.visitJumpInsn(GOTO, l3);
    mv.visitLabel(l4);

    // return result
View Full Code Here

    Label l6 = new Label();
    mv.visitLabel(l6);
    mv.visitIincInsn(counterLocal, 1);
    mv.visitJumpInsn(GOTO, l3);
    mv.visitLabel(l4);

    // return result
    mv.visitInsn(ICONST_1);
    mv.visitIntInsn(NEWARRAY, T_DOUBLE);
    mv.visitInsn(DUP);
View Full Code Here

    mv.visitInsn(ICONST_0);
    mv.visitVarInsn(ISTORE, counterLocal);

    // check whether to loop
    Label l4 = new Label();
    mv.visitLabel(l4);
    mv.visitVarInsn(ILOAD, counterLocal);
    matrix.pushLength(method);

    Label l5 = new Label();
    mv.visitJumpInsn(IF_ICMPEQ, l5);
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.