Package org.objectweb.asm.commons

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


    final GeneratorAdapter mv = mv();
    final Label ifFalse = mv.newLabel();
    numericCompiler().compileTest( this.node, ifFalse );
    mv.push( true );
    mv.returnValue();
    mv.visitLabel( ifFalse );
    mv.push( false );
    mv.returnValue();
  }

}
View Full Code Here


    mv.visitInsn( Opcodes.DCONST_0 );
    mv.visitInsn( Opcodes.DCMPL );
    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.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeDouble_v2", "fun_BINOMDIST", "(IIDZ)D" );
  }
View Full Code Here

    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.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeDouble_v2", "fun_BINOMDIST", "(IIDZ)D" );
  }

  private final void compile_fun_CHIDIST( ExpressionNode _a, ExpressionNode _b ) throws CompilerException
  {
View Full Code Here

    mv.visitInsn( Opcodes.DCONST_0 );
    mv.visitInsn( Opcodes.DCMPL );
    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.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeDouble_v2", "fun_GAMMADIST", "(DDDZ)D" );
  }
View Full Code Here

    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.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeDouble_v2", "fun_GAMMADIST", "(DDDZ)D" );
  }

  private final void compile_fun_GAMMAINV( ExpressionNode _a, ExpressionNode _b, ExpressionNode _c ) throws CompilerException
  {
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "java/lang/Double", "isInfinite", "(D)Z" );
    mv.visitJumpInsn( Opcodes.IFNE, l_0 );
    mv.visitVarInsn( Opcodes.DLOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "java/lang/Double", "isNaN", "(D)Z" );
    mv.visitJumpInsn( Opcodes.IFEQ, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.DCONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_2 );
    mv.visitLabel( l_1 );
    mv.visitInsn( Opcodes.DCONST_0 );
    mv.visitLabel( l_2 );
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "java/lang/Double", "isNaN", "(D)Z" );
    mv.visitJumpInsn( Opcodes.IFEQ, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.DCONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_2 );
    mv.visitLabel( l_1 );
    mv.visitInsn( Opcodes.DCONST_0 );
    mv.visitLabel( l_2 );
  }

  private final void compile_op_PLUS( ExpressionNode _b ) throws CompilerException
View Full Code Here

    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.DCONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_2 );
    mv.visitLabel( l_1 );
    mv.visitInsn( Opcodes.DCONST_0 );
    mv.visitLabel( l_2 );
  }

  private final void compile_op_PLUS( ExpressionNode _b ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    mv.push( 1 );
    mv.visitInsn( Opcodes.ISUB );
    mv.visitInsn( Opcodes.IADD );
    mv.visitInsn( Opcodes.IRETURN );

    mv.visitLabel( outOfRange );
    mv.throwException( ExpressionCompiler.FORMULA_ERROR_TYPE, "#VALUE/REF! because index is out of range in INDEX" );
  }


}
View Full Code Here

    final int size = genInitializeDataField(gen);

    // Stack[0]: [[Z

    // Return the method's block array:
    gen.visitLabel(alreadyInitialized);
    gen.loadArg(0);

    // Stack[1]: I
    // Stack[0]: [[Z
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.