Examples of ifICmp()


Examples of org.objectweb.asm.commons.GeneratorAdapter.ifICmp()

        Method.getMethod("String getClassName ()"));
    mg.push("Dialog");
    mg.invokeVirtual(Type.getType(String.class),
        Method.getMethod("int indexOf (String)"));
    mg.push(-1);
    mg.ifICmp(GeneratorAdapter.EQ, LABEL_SKIP_CALL_TO_SUPER);
//    //XXX: DEBUG
//    mg.getStatic(Type.getType(System.class), "out", Type.getType(java.io.PrintStream.class));
//    mg.push("2");
//    mg.invokeVirtual(Type.getType(java.io.PrintStream.class), Method.getMethod("void println (String)"));
//    //XXX: DEBUG
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifICmp()

   
    mg.mark(LABEL_LOOP_CMP);
    mg.loadLocal(2);
    mg.loadLocal(1);
    mg.arrayLength();
    mg.ifICmp(GeneratorAdapter.LT, LABEL_LOOP_START);
   
    mg.loadThis();
    mg.invokeVirtual(Type.getType("Lorg/eclipse/swt/custom/CLabel;"),
        Method.getMethod("org.eclipse.swt.widgets.Display getDisplay ()"));
    mg.push(1);
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifICmp()

    final Label outOfRange = mv.newLabel();

    // range check row
    mv.visitVarInsn( Opcodes.ILOAD, 1 ); // row
    mv.push( 1 );
    mv.ifICmp( mv.LT, outOfRange );
    mv.visitVarInsn( Opcodes.ILOAD, 1 ); // row
    mv.push( this.rows );
    mv.ifICmp( mv.GT, outOfRange );

    // range check col
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifICmp()

    mv.visitVarInsn( Opcodes.ILOAD, 1 ); // row
    mv.push( 1 );
    mv.ifICmp( mv.LT, outOfRange );
    mv.visitVarInsn( Opcodes.ILOAD, 1 ); // row
    mv.push( this.rows );
    mv.ifICmp( mv.GT, outOfRange );

    // range check col
    mv.visitVarInsn( Opcodes.ILOAD, 2 ); // col
    mv.push( 1 );
    mv.ifICmp( mv.LT, outOfRange );
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifICmp()

    mv.ifICmp( mv.GT, outOfRange );

    // range check col
    mv.visitVarInsn( Opcodes.ILOAD, 2 ); // col
    mv.push( 1 );
    mv.ifICmp( mv.LT, outOfRange );
    mv.visitVarInsn( Opcodes.ILOAD, 2 ); // col
    mv.push( this.cols );
    mv.ifICmp( mv.GT, outOfRange );

    // (<row> - 1) * <num_cols>) + (<col> - 1);
View Full Code Here

Examples of org.objectweb.asm.commons.GeneratorAdapter.ifICmp()

    mv.visitVarInsn( Opcodes.ILOAD, 2 ); // col
    mv.push( 1 );
    mv.ifICmp( mv.LT, outOfRange );
    mv.visitVarInsn( Opcodes.ILOAD, 2 ); // col
    mv.push( this.cols );
    mv.ifICmp( mv.GT, outOfRange );

    // (<row> - 1) * <num_cols>) + (<col> - 1);
    mv.visitVarInsn( Opcodes.ILOAD, 1 ); // row
    mv.push( 1 );
    mv.visitInsn( Opcodes.ISUB );
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.