Package org.objectweb.asm

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


            cv.visitLdcInsn(new Integer(0xffffffff));
            cv.visitInsn(ICONST_0);
            cv.visitMethodInsn(INVOKEINTERFACE,
                    getJVMClassName(StateItf.class),
                    "indexFieldModified", "(IZ)V");
            cv.visitJumpInsn(GOTO, labelEnd);
        }
        cv.visitLabel(labelElse);
        {
            for (int ucIdx = 0; ucIdx < gc.userCacheNames.length; ucIdx++) {
                String ucn = gc.userCacheNames[ucIdx];
View Full Code Here


        mv.visitVarInsn(ASTORE, 1);

        //return sa == null || LifeCycle.isPersistent(sa.speedoGetStatus());
        mv.visitVarInsn(ALOAD, 1);
        Label l4 = new Label();
        mv.visitJumpInsn(IFNULL, l4);
        mv.visitVarInsn(ALOAD, 1);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_STATE, M_SPEEDO_GET_STATUS, "()B");
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isPersistent", "(B)Z");
        Label l5 = new Label();
        mv.visitJumpInsn(IFEQ, l5);
View Full Code Here

                    Util.visitLongConstant(cv, 1L << (sf.number % 64));
                    cv.visitInsn(LAND);
                    cv.visitInsn(LCONST_0);
                    cv.visitInsn(LCMP);
                    Label labelNext = new Label();
                    cv.visitJumpInsn(IFEQ, labelNext);
                    {
                        //sa.indexFieldModified(${ucn}_USER_CACHE_ID, false);
                        cv.visitVarInsn(ALOAD, 4);
                        Util.visitIntConstant(cv, ucIdx);
                        cv.visitInsn(ICONST_0);
View Full Code Here

        mv.visitJumpInsn(IFNULL, l4);
        mv.visitVarInsn(ALOAD, 1);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_STATE, M_SPEEDO_GET_STATUS, "()B");
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isPersistent", "(B)Z");
        Label l5 = new Label();
        mv.visitJumpInsn(IFEQ, l5);
        mv.visitLabel(l4);
        mv.visitInsn(ICONST_1);
        Label l6 = new Label();
        mv.visitJumpInsn(GOTO, l6);
       
View Full Code Here

        Label l5 = new Label();
        mv.visitJumpInsn(IFEQ, l5);
        mv.visitLabel(l4);
        mv.visitInsn(ICONST_1);
        Label l6 = new Label();
        mv.visitJumpInsn(GOTO, l6);
       
        mv.visitLabel(l5);
        mv.visitInsn(ICONST_0);

        mv.visitLabel(l6);
View Full Code Here

                "(Ljava/lang/String;)Z", null, null);

        //if (cacheName == null) {
        cv.visitVarInsn(ALOAD, 1);
        Label l0 = new Label();
        cv.visitJumpInsn(IFNONNULL, l0);
        {
            //return false;
            cv.visitInsn(ICONST_0);
            cv.visitInsn(IRETURN);
        }
View Full Code Here

        //} else if ("*".equals(cacheName)) {
        cv.visitLdcInsn("*");
        cv.visitVarInsn(ALOAD, 1);
        cv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/String", "equals", "(Ljava/lang/Object;)Z");
        Label labelElse = new Label();
        cv.visitJumpInsn(IFEQ, labelElse);
        {
            //foreach($ucn in $userCacheNames)
            for (int ucIdx = 0; ucIdx < gc.userCacheNames.length; ucIdx++) {
                //activeUserCache("$ucn");
                cv.visitVarInsn(ALOAD, 0);
View Full Code Here

            //} else if ("${ucn}".equals(cacheName)) {
            cv.visitLdcInsn(ucn);
            cv.visitVarInsn(ALOAD, 1);
            cv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/String", "equals", "(Ljava/lang/Object;)Z");
            Label labelNext = new Label();
            cv.visitJumpInsn(IFEQ, labelNext);
            {
                //this.addUserCache(cacheName, ${userCacheFieldNames.get($ucn)}, ${ucn}_USER_CACHE_ID);
                cv.visitVarInsn(ALOAD, 0); //this
                cv.visitVarInsn(ALOAD, 1); //cacheName parameter
               
View Full Code Here

        //    return speedoReferenceState;
        //}
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, classToWrite, ISACTIVE_FIELD_NAME, "Z");
        Label l1 = new Label();
        mv.visitJumpInsn(IFNE, l1);
        generateGetRefState(mv, false);
        mv.visitInsn(ARETURN);
        mv.visitLabel(l1);

        //return speedoGetHome().getSpeedoAccessor(this);
View Full Code Here

                "([J)" + JT_STATE, null, null);
        //if (!speedoIsActive) {
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, classToWrite, ISACTIVE_FIELD_NAME, "Z");
        Label l1 = new Label();
        mv.visitJumpInsn(IFNE, l1);
        {
            //if (speedoReferenceState == null) {
            generateGetRefState(mv, false);
            Label l3 = new Label();
            mv.visitJumpInsn(IFNONNULL, l3);
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.