Package org.objectweb.asm

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


    mv.visitLabel(l8);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l8, 0);
    mv.visitLocalVariable("entities", "Lcom/artemis/utils/ImmutableBag;", "Lcom/artemis/utils/ImmutableBag<Lcom/artemis/Entity;>;", l0, l8, 1);
    mv.visitLocalVariable("array", "[Ljava/lang/Object;", null, l1, l8, 2);
    mv.visitLocalVariable("i", "I", null, l2, l7, 3);
    mv.visitLocalVariable("s", "I", null, l3, l7, 4);
    mv.visitEnd();
  }

  private static int invocation(OptimizationType systemOptimization) {
    switch (systemOptimization) {
View Full Code Here


    mv.visitLabel(l1);
    mv.visitInsn(RETURN);
    Label l2 = new Label();
    mv.visitLabel(l2);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l2, 0);
    mv.visitLocalVariable("world", "Lcom/artemis/World;", null, l0, l2, 1);
    mv.visitEnd();
  }

  private void injectGrow(String owner) {
    MethodVisitor mv = cw.visitMethod(ACC_PRIVATE, "$grow", "(I)V", null, null);
View Full Code Here

    Label l11 = new Label();
    mv.visitLabel(l11);
    mv.visitInsn(RETURN);
    Label l12 = new Label();
    mv.visitLabel(l12);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l12, 0);
    mv.visitLocalVariable("capacity", "I", null, l0, l12, 1);
    mv.visitLocalVariable("newBuffer", "Ljava/nio/ByteBuffer;", null, l1, l12, 2);
    mv.visitLocalVariable("i", "I", null, l2, l7, 3);
    mv.visitLocalVariable("s", "I", null, l3, l7, 4);
    mv.visitLocalVariable("ref", meta.type.toString(), null, l10, l8, 3);
View Full Code Here

    mv.visitLabel(l11);
    mv.visitInsn(RETURN);
    Label l12 = new Label();
    mv.visitLabel(l12);
    mv.visitLocalVariable("this", meta.type.toString(), null, l0, l12, 0);
    mv.visitLocalVariable("capacity", "I", null, l0, l12, 1);
    mv.visitLocalVariable("newBuffer", "Ljava/nio/ByteBuffer;", null, l1, l12, 2);
    mv.visitLocalVariable("i", "I", null, l2, l7, 3);
    mv.visitLocalVariable("s", "I", null, l3, l7, 4);
    mv.visitLocalVariable("ref", meta.type.toString(), null, l10, l8, 3);
    mv.visitEnd();
View Full Code Here

        Label l1 = new Label();
        mv1.visitLabel(l1);
        mv1.visitInsn(RETURN);
        Label l2 = new Label();
        mv1.visitLabel(l2);
        mv1.visitLocalVariable("this", "Lio/s4/core/" + dispatcherClassName + ";", null, l0, l2, 0);
        mv1.visitMaxs(1, 1);

        mv1.visitEnd();

        // dispatch input events method
View Full Code Here

            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);
        mv2.visitLocalVariable("event", Type.getDescriptor(Event.class), null, l3, l8, 2);
        mv2.visitLocalVariable("typedPE", Type.getDescriptor(targetClass), null, l3, l8, 3);
        mv2.visitMaxs(4, 4);
        mv2.visitEnd();
    }
View Full Code Here

        }
        mv2.visitInsn(RETURN);
        Label l8 = new Label();
        mv2.visitLabel(l8);
        mv2.visitLocalVariable("pe", Type.getDescriptor(ProcessingElement.class), null, l3, l8, 1);
        mv2.visitLocalVariable("event", Type.getDescriptor(Event.class), null, l3, l8, 2);
        mv2.visitLocalVariable("typedPE", Type.getDescriptor(targetClass), null, l3, l8, 3);
        mv2.visitMaxs(4, 4);
        mv2.visitEnd();
    }
View Full Code Here

        mv2.visitInsn(RETURN);
        Label l8 = new Label();
        mv2.visitLabel(l8);
        mv2.visitLocalVariable("pe", Type.getDescriptor(ProcessingElement.class), null, l3, l8, 1);
        mv2.visitLocalVariable("event", Type.getDescriptor(Event.class), null, l3, l8, 2);
        mv2.visitLocalVariable("typedPE", Type.getDescriptor(targetClass), null, l3, l8, 3);
        mv2.visitMaxs(4, 4);
        mv2.visitEnd();
    }

    private void addErrorLogStatement(MethodVisitor mv2) {
View Full Code Here

        mv.visitLabel(l2);
        mv.visitLineNumber(32, l2);
        mv.visitInsn(Opcodes.RETURN);
        Label l3 = new Label();
        mv.visitLabel(l3);
        mv.visitLocalVariable("this", "Lorg/apache/cxf/jaxb/NamespaceMapperInternal;", null, l0, l3, 0);
        mv.visitLocalVariable("nspref", "Ljava/util/Map;",
                              "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;",
                              l0, l3, 1);
        mv.visitMaxs(2, 2);
        mv.visitEnd();
View Full Code Here

        mv.visitLineNumber(32, l2);
        mv.visitInsn(Opcodes.RETURN);
        Label l3 = new Label();
        mv.visitLabel(l3);
        mv.visitLocalVariable("this", "Lorg/apache/cxf/jaxb/NamespaceMapperInternal;", null, l0, l3, 0);
        mv.visitLocalVariable("nspref", "Ljava/util/Map;",
                              "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;",
                              l0, l3, 1);
        mv.visitMaxs(2, 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.