Package org.objectweb.asm

Examples of org.objectweb.asm.CodeVisitor.visitMaxs()


        generateFieldIdAsLongArray(null, nbField, mv);
        mv.visitMethodInsn(INVOKESTATIC, getJVMClassName(SpeedoPOSerializer.class),
                "writeObject",
                "(Ljava/io/ObjectOutputStream;" + JT_PO + "[J)V");
        mv.visitInsn(RETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateSpeedoIsPersistentMethod() {
        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, "speedoIsPersistent", "()Z", null, null);
View Full Code Here


        }
        cv.visitLabel(labelEnd);
        //return sa;
        cv.visitVarInsn(ALOAD, 4);
        cv.visitInsn(ARETURN);
        cv.visitMaxs(0, 0);
    }
    private void generateActiveUserCache(HomeContext gc) {
        if (gc.userCacheNames.length == 0) {
            return;
        }
View Full Code Here

        mv.visitLabel(l5);
        mv.visitInsn(ICONST_0);

        mv.visitLabel(l6);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
    }
   
}
View Full Code Here

            cv.visitLabel(labelNext);
        }
        //return false;
        cv.visitInsn(ICONST_0);
        cv.visitInsn(IRETURN);
        cv.visitMaxs(0, 0);
    }
    private void generateIniSHMethod(HomeContext gc) {
        CodeVisitor cv = gc.cv.visitMethod(ACC_PUBLIC, "initSH", "()V", null, null);
        String sqJCN = getJVMClassName(getQueryClass());
        for (Iterator it = gc.sc.name2query.values().iterator(); it.hasNext();) {
View Full Code Here

        mv.visitVarInsn(ILOAD, 2);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKESTATIC, xfieldsJCN, "speedoElementRemoved",
                "(Ljava/lang/Object;I" + JT_PO + ")V");
        mv.visitInsn(RETURN);
        mv.visitMaxs(0, 0);
    }
}
View Full Code Here

        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, ISACTIVE_FIELD_NAME, "()Z", null, null);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, classToWrite, ISACTIVE_FIELD_NAME, "Z");
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateSpeedoIsActiveZMethod() {
        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, ISACTIVE_FIELD_NAME, "(Z)V", null, null);
        mv.visitVarInsn(ALOAD, 0);
View Full Code Here

        mv = cv.visitMethod(ACC_PUBLIC, ISACTIVE_FIELD_NAME, "(Z)V", null, null);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitVarInsn(ILOAD, 1);
        mv.visitFieldInsn(PUTFIELD, classToWrite, ISACTIVE_FIELD_NAME, "Z");
        mv.visitInsn(RETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateSpeedoGetHomeMethod() {
        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, M_SPEEDO_GET_HOME, "()" + JT_HOME, null, null);
        mv.visitVarInsn(ALOAD, 0);
View Full Code Here

        //return (HomeItf) getPClassMapping();
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, "getPClassMapping",
                "()Lorg/objectweb/jorm/api/PClassMapping;");
        mv.visitTypeInsn(CHECKCAST, JCN_HOME);
        mv.visitInsn(ARETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateSpeedoGetReferenceStateMethod() {
        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, M_SPEEDO_GET_REF_STATE, "()" + JT_STATE, null, null);
        //return speedoReferenceState
View Full Code Here

        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, M_SPEEDO_GET_REF_STATE, "()" + JT_STATE, null, null);
        //return speedoReferenceState
        generateGetRefState(mv, false);
        mv.visitInsn(ARETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateSpeedoGetStateMethod() {
        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, M_SPEEDO_GET_STATE, "()" + JT_STATE, null, null);
        //if (!speedoIsActive) {
View Full Code Here

        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_HOME, "()" + JT_HOME);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_HOME, "getState",
                "(" + JT_PO + ")" + JT_STATE);
        mv.visitInsn(ARETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateSpeedoReadIntentionMethod() {
        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, "speedoReadIntention",
                "([J)" + JT_STATE, null, null);
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.