Package org.objectweb.asm.commons

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


        mv.visitTryCatchBlock(l0, l1, l2, "java/lang/Throwable");

        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_owner, generateMethodFlag(name, desc), "Z");
        mv.visitJumpInsn(IFNE, l0);

        mv.visitVarInsn(ALOAD, 0);
        mv.loadArgs();
        mv.visitMethodInsn(INVOKESPECIAL, m_owner, PREFIX + name, desc);
        mv.visitInsn(returnType.getOpcode(IRETURN));
View Full Code Here


        }
        mv.visitMethodInsn(INVOKEVIRTUAL, "org/apache/felix/ipojo/InstanceManager", EXIT, "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V");

        mv.visitLabel(l1);
        Label l7 = new Label();
        mv.visitJumpInsn(GOTO, l7);
        mv.visitLabel(l2);

        mv.visitVarInsn(ASTORE, exception);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_owner, IM_FIELD, "Lorg/apache/felix/ipojo/InstanceManager;");
View Full Code Here

    incLocalsOffset( 1 );
    Label l_0 = new Label();
    Label l_1 = new Label();
    compile( _g );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/math/BigDecimal", "intValue", "()I" );
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ICONST_0 );
    mv.visitLabel( l_1 );
View Full Code Here

    Label l_1 = new Label();
    compile( _g );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/math/BigDecimal", "intValue", "()I" );
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ICONST_0 );
    mv.visitLabel( l_1 );
    mv.visitVarInsn( Opcodes.ISTORE, 0 + loc );
    compile( _a );
View Full Code Here

    method().numericCompiler().compileTest( _test, notMet );

    final Set<DelayedLet> outerSetsInTrueBranch = compileTrackingSetsOfOuterLets( _ifTrue );
    revertSetsOfOuterLets( outerSetsInTrueBranch, null );

    mv.visitJumpInsn( Opcodes.GOTO, done );
    mv.mark( notMet );

    final Set<DelayedLet> outerSetsInFalseBranch = compileTrackingSetsOfOuterLets( _ifFalse );
    revertSetsOfOuterLets( outerSetsInFalseBranch, outerSetsInTrueBranch );
View Full Code Here

    Label l_1 = new Label();
    mv.visitVarInsn( Opcodes.ISTORE, 0 + loc );
    mv.push( _c );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 4 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.push( _f );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
View Full Code Here

    mv.visitVarInsn( Opcodes.ASTORE, 4 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.push( _f );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.push( _e );
    mv.push( _d );
View Full Code Here

    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/RangeAddressImpl", "<init>", "(Lorg/formulacompiler/runtime/spreadsheet/CellAddress;Lorg/formulacompiler/runtime/spreadsheet/CellAddress;)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ACONST_NULL );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitLabel( l_1 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/SectionInfoImpl" );
View Full Code Here

    mv.visitInsn( Opcodes.ICONST_0 );
    mv.visitVarInsn( Opcodes.ISTORE, 2 + loc );
    mv.visitLabel( l_1 );
    mv.visitVarInsn( Opcodes.ILOAD, 2 + loc );
    mv.visitVarInsn( Opcodes.ILOAD, 1 + loc );
    mv.visitJumpInsn( Opcodes.IF_ICMPGE, l_0 );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitVarInsn( Opcodes.ILOAD, 2 + loc );
    mv.visitInsn( Opcodes.AALOAD );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
    _forElement.compile( 3 + loc );
View Full Code Here

    mv.visitVarInsn( Opcodes.ILOAD, 2 + loc );
    mv.visitInsn( Opcodes.AALOAD );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
    _forElement.compile( 3 + loc );
    mv.visitIincInsn( 2 + loc, 1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
  }

}
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.