Package org.objectweb.asm.commons

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


    mv.visitFieldInsn( Opcodes.GETSTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "TENTH", "Ljava/math/BigDecimal;" );
    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "HIGHPREC", "Ljava/math/MathContext;" );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "fun_RATE", "(Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;" );
    mv.visitVarInsn( Opcodes.ASTORE, 6 + loc );
View Full Code Here


    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "HIGHPREC", "Ljava/math/MathContext;" );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "fun_RATE", "(Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;" );
    mv.visitVarInsn( Opcodes.ASTORE, 6 + loc );
    compile_context();
View Full Code Here

    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "HIGHPREC", "Ljava/math/MathContext;" );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "fun_RATE", "(Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;" );
    mv.visitVarInsn( Opcodes.ASTORE, 6 + loc );
    compile_context();
    mv.visitVarInsn( Opcodes.ALOAD, 6 + loc );
View Full Code Here

    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "HIGHPREC", "Ljava/math/MathContext;" );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "fun_RATE", "(Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;" );
    mv.visitVarInsn( Opcodes.ASTORE, 6 + loc );
    compile_context();
    mv.visitVarInsn( Opcodes.ALOAD, 6 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/RuntimeLong_v2$Context", "fromBigDecimal", "(Ljava/math/BigDecimal;)J" );
  }
View Full Code Here

    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.visitFieldInsn( Opcodes.GETSTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "HIGHPREC", "Ljava/math/MathContext;" );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeScaledBigDecimal_v2", "fun_RATE", "(Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;" );
    mv.visitVarInsn( Opcodes.ASTORE, 6 + loc );
    compile_context();
    mv.visitVarInsn( Opcodes.ALOAD, 6 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/RuntimeLong_v2$Context", "fromBigDecimal", "(Ljava/math/BigDecimal;)J" );
  }

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

    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 );
    mv.visitVarInsn( Opcodes.ILOAD, 0 + loc );
  }

  protected final void compile_util_toCharacter() throws CompilerException
  {
View Full Code Here

    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 );
    mv.visitVarInsn( Opcodes.ILOAD, 0 + loc );
  }

  protected final void compile_util_toCharacter() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
View Full Code Here

    final int loc = localsOffset();
    Label l_0 = new Label();
    Label l_1 = new Label();
    compile( _a );
    mv.visitInsn( Opcodes.DUP2 );
    mv.visitVarInsn( Opcodes.LSTORE, 0 + loc );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitInsn( Opcodes.LCMP );
    mv.visitJumpInsn( Opcodes.IFGE, l_0 );
    mv.visitVarInsn( Opcodes.LLOAD, 0 + loc );
    mv.visitInsn( Opcodes.LNEG );
View Full Code Here

    mv.visitInsn( Opcodes.DUP2 );
    mv.visitVarInsn( Opcodes.LSTORE, 0 + loc );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitInsn( Opcodes.LCMP );
    mv.visitJumpInsn( Opcodes.IFGE, l_0 );
    mv.visitVarInsn( Opcodes.LLOAD, 0 + loc );
    mv.visitInsn( Opcodes.LNEG );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitVarInsn( Opcodes.LLOAD, 0 + loc );
    mv.visitLabel( l_1 );
View Full Code Here

    mv.visitJumpInsn( Opcodes.IFGE, l_0 );
    mv.visitVarInsn( Opcodes.LLOAD, 0 + loc );
    mv.visitInsn( Opcodes.LNEG );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitVarInsn( Opcodes.LLOAD, 0 + loc );
    mv.visitLabel( l_1 );
  }

  private final void compile_fun_ACOS( ExpressionNode _a ) throws CompilerException
  {
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.