Package org.objectweb.asm

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


    mv.visitLabel(l10);
    mv.visitVarInsn(ALOAD, 3);
    mv.visitVarInsn(ALOAD, 2);
    mv.visitFieldInsn(PUTFIELD, owner, "$data", "Ljava/nio/ByteBuffer;");
    mv.visitLabel(l8);
    mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);
    mv.visitVarInsn(ALOAD, 4);
    mv.visitMethodInsn(INVOKEINTERFACE, "java/util/Iterator", "hasNext", "()Z");
    mv.visitJumpInsn(IFNE, l9);
    Label l11 = new Label();
    mv.visitLabel(l11);
View Full Code Here


                    "(" + Type.getDescriptor(hierarchy.getTop()) + ")V");
            mv2.visitJumpInsn(Opcodes.GOTO, aroundLabel);
            mv2.visitLabel(l5);

            if (first) {
                mv2.visitFrame(F_APPEND, 1, new Object[] { Type.getInternalName(targetClass) }, 0, null);
                first = false;
            } else {
                mv2.visitFrame(Opcodes.F_SAME, 0, null, 0, null);
            }
        }
View Full Code Here

            if (first) {
                mv2.visitFrame(F_APPEND, 1, new Object[] { Type.getInternalName(targetClass) }, 0, null);
                first = false;
            } else {
                mv2.visitFrame(Opcodes.F_SAME, 0, null, 0, null);
            }
        }
        addErrorLogStatement(mv2);
        if (eventHierarchies.size() > 0) {
            mv2.visitLabel(aroundLabel);
View Full Code Here

            }
        }
        addErrorLogStatement(mv2);
        if (eventHierarchies.size() > 0) {
            mv2.visitLabel(aroundLabel);
            mv2.visitFrame(Opcodes.F_SAME, 0, null, 0, null);
        }
        mv2.visitInsn(RETURN);
        Label l8 = new Label();
        mv2.visitLabel(l8);
        mv2.visitLocalVariable("pe", Type.getDescriptor(ProcessingElement.class), null, l3, l8, 1);
View Full Code Here

      final int size = genInitializeDataField(mv, probeCount);

      // Stack[0]: [Z

      // Return the method's block array:
      mv.visitFrame(Opcodes.F_FULL, 0, new Object[0], 1, STACK_ARRZ);
      mv.visitLabel(alreadyInitialized);
      mv.visitInsn(Opcodes.ARETURN);

      mv.visitMaxs(Math.max(size, 2), 1); // Maximum local stack size is 2
      mv.visitEnd();
View Full Code Here

      final int size = genInitializeDataField(mv);

      // Stack[0]: [Z

      // Return the method's block array:
      mv.visitFrame(Opcodes.F_FULL, 0, new Object[0], 1, STACK_ARRZ);
      mv.visitLabel(alreadyInitialized);
      mv.visitInsn(Opcodes.ARETURN);

      mv.visitMaxs(Math.max(size, 2), 1); // Maximum local stack size is 2
      mv.visitEnd();
View Full Code Here

      final int size = genInitializeDataField(mv, probeCount);

      // Stack[0]: [Z

      // Return the class' probe array:
      mv.visitFrame(Opcodes.F_FULL, 0, NO_LOCALS, 1, STACK_ARRZ);
      mv.visitLabel(alreadyInitialized);
      mv.visitInsn(Opcodes.ARETURN);

      mv.visitMaxs(Math.max(size, 2), 0); // Maximum local stack size is 2
      mv.visitEnd();
View Full Code Here

      final MethodVisitor mv = cv.visitMethod(
          InstrSupport.INITMETHOD_ACC, InstrSupport.INITMETHOD_NAME,
          InstrSupport.INITMETHOD_DESC, null, null);
      mv.visitCode();
      if (withFrames) {
        mv.visitFrame(Opcodes.F_NEW, 0, NO_LOCALS, 0, STACK_ARRZ);
      }

      // Load the value of the static data field:
      mv.visitFieldInsn(Opcodes.GETSTATIC, className,
          InstrSupport.DATAFIELD_NAME, InstrSupport.DATAFIELD_DESC);
View Full Code Here

      // Stack[0]: [Z

      // Return the class' probe array:
      if (withFrames) {
        mv.visitFrame(Opcodes.F_NEW, 0, NO_LOCALS, 1, STACK_ARRZ);
      }
      mv.visitLabel(alreadyInitialized);
      mv.visitInsn(Opcodes.ARETURN);

      mv.visitMaxs(Math.max(size, 2), 0); // Maximum local stack size is 2
View Full Code Here

      final int size = genInitializeDataField(mv, probeCount);

      // Stack[0]: [Z

      // Return the class' probe array:
      mv.visitFrame(Opcodes.F_FULL, 0, NO_LOCALS, 1, STACK_ARRZ);
      mv.visitLabel(alreadyInitialized);
      mv.visitInsn(Opcodes.ARETURN);

      mv.visitMaxs(Math.max(size, 2), 0); // Maximum local stack size is 2
      mv.visitEnd();
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.