Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter


    mv.visitInsn( Opcodes.LDIV );
  }

  protected final void compile_util_fromInt() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.I2L );
  }
View Full Code Here


    mv.visitInsn( Opcodes.I2L );
  }

  protected final void compile_util_fromLong() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
  }
View Full Code Here

    final int loc = localsOffset();
  }

  protected final void compile_util_fromDouble() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.D2L );
  }
View Full Code Here

    mv.visitInsn( Opcodes.D2L );
  }

  protected final void compile_util_fromDouble_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromDouble", "(DLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromDouble", "(DLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

  protected final void compile_util_fromFloat() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.F2L );
  }
View Full Code Here

    mv.visitInsn( Opcodes.F2L );
  }

  protected final void compile_util_fromFloat_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.F2D );
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromDouble", "(DLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromDouble", "(DLorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

  protected final void compile_util_fromBigDecimal() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromBigDecimal", "(Ljava/math/BigDecimal;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromBigDecimal", "(Ljava/math/BigDecimal;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

  protected final void compile_util_fromBigDecimal_Scaled() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    compile_context();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromBigDecimal", "(Ljava/math/BigDecimal;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/RuntimeLong_v2", "fromBigDecimal", "(Ljava/math/BigDecimal;Lorg/formulacompiler/runtime/internal/RuntimeLong_v2$Context;)J" );
  }

  protected final void compile_util_fromNumber() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    Label l_0 = new Label();
    Label l_1 = new Label();
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 0 + loc );
    mv.visitJumpInsn( Opcodes.IFNONNULL, l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/lang/Number", "longValue", "()J" );
    mv.visitLabel( l_1 );
  }
View Full Code Here

    mv.visitLabel( l_1 );
  }

  protected final void compile_util_fromBoolean() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    Label l_0 = new Label();
    Label l_1 = new Label();
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    compile_one();
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitLabel( l_1 );
  }
View Full Code Here

TOP

Related Classes of org.objectweb.asm.commons.GeneratorAdapter

Copyright © 2018 www.massapicom. 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.