Package org.objectweb.asm

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


      Label l0 = new Label();
      mv.visitLabel(l0);
      mv.visitVarInsn(ALOAD, 1);
      mv.visitVarInsn(ALOAD, 2);
      Label l1 = new Label();
      mv.visitLabel(l1);
      mv.visitTypeInsn(NEW, "org/renjin/eval/DoubleVector");
      mv.visitInsn(DUP);
      mv.visitInsn(ICONST_1);
      mv.visitIntInsn(NEWARRAY, T_DOUBLE);
      mv.visitInsn(DUP);
View Full Code Here


      mv.visitInsn(ICONST_0);
      mv.visitInsn(DCONST_1);
      mv.visitInsn(DASTORE);
      mv.visitMethodInsn(INVOKESPECIAL, "org/renjin/eval/DoubleVector", "<init>", "([D)V");
      Label l2 = new Label();
      mv.visitLabel(l2);
      mv.visitMethodInsn(INVOKESTATIC, "r/base/primitives/R$primitive$_$43$_", "doApply", "(Lorg/renjin/eval/Context;Lorg/renjin/eval/Environment;Lorg/renjin/eval/SEXP;Lorg/renjin/eval/SEXP;)Lorg/renjin/eval/SEXP;");
      mv.visitInsn(ARETURN);
      Label l3 = new Label();
      mv.visitLabel(l3);
      mv.visitMaxs(10, 3);
View Full Code Here

      Label l2 = new Label();
      mv.visitLabel(l2);
      mv.visitMethodInsn(INVOKESTATIC, "r/base/primitives/R$primitive$_$43$_", "doApply", "(Lorg/renjin/eval/Context;Lorg/renjin/eval/Environment;Lorg/renjin/eval/SEXP;Lorg/renjin/eval/SEXP;)Lorg/renjin/eval/SEXP;");
      mv.visitInsn(ARETURN);
      Label l3 = new Label();
      mv.visitLabel(l3);
      mv.visitMaxs(10, 3);
      mv.visitEnd();
    }
    cw.visitEnd();
View Full Code Here

  private void writeConstructor() {
    MethodVisitor mv = cv.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
    mv.visitCode();
    Label l0 = new Label();
    mv.visitLabel(l0);
    mv.visitLineNumber(8, l0);
    mv.visitVarInsn(ALOAD, 0);
    mv.visitInsn(DUP);
    mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V");
   
View Full Code Here

 
    generationContext.getSexpPool().writeConstructorBody(mv);
   
    mv.visitInsn(RETURN);
    Label l1 = new Label();
    mv.visitLabel(l1);
    mv.visitLocalVariable("this", "L" + generationContext.getClassName() + ";", null, l0, l1, 0);
    mv.visitMaxs(1, 1);
    mv.visitEnd();
  }
View Full Code Here

  private void writeConstructor(ClassWriter cw) {
    MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
    mv.visitCode();
    Label l0 = new Label();
    mv.visitLabel(l0);
    mv.visitLineNumber(10, l0);
    mv.visitVarInsn(ALOAD, 0);
    mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V");
    mv.visitInsn(RETURN);
    Label l1 = new Label();
View Full Code Here

    mv.visitLineNumber(10, l0);
    mv.visitVarInsn(ALOAD, 0);
    mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>", "()V");
    mv.visitInsn(RETURN);
    Label l1 = new Label();
    mv.visitLabel(l1);
    mv.visitLocalVariable("this", "Lr/benchmarks/MeanOnline;", null, l0, l1, 0);
    mv.visitMaxs(1, 1);
    mv.visitEnd();
  }
 
View Full Code Here

    mv.visitIincInsn(rowLocal, 1);

    // check if we've hit the end of the rows
    // and need to start again
    Label l8 = new Label();
    mv.visitLabel(l8);
    mv.visitVarInsn(ILOAD, rowLocal);
    mv.visitVarInsn(ILOAD, numRowsLocal);
    Label l9 = new Label();
    mv.visitJumpInsn(IF_ICMPNE, l9);
    Label l10 = new Label();
View Full Code Here

    mv.visitVarInsn(ILOAD, rowLocal);
    mv.visitVarInsn(ILOAD, numRowsLocal);
    Label l9 = new Label();
    mv.visitJumpInsn(IF_ICMPNE, l9);
    Label l10 = new Label();
    mv.visitLabel(l10);
    mv.visitInsn(ICONST_0);
    mv.visitVarInsn(ISTORE, rowLocal);

    // increment the vector index counter and loop
    mv.visitLabel(l9);
View Full Code Here

    mv.visitLabel(l10);
    mv.visitInsn(ICONST_0);
    mv.visitVarInsn(ISTORE, rowLocal);

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

    mv.visitLabel(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.