Package org.objectweb.asm.commons

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


  protected final void compile_util_scaleDown( long _b ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.push( _b );
    mv.visitInsn( Opcodes.LDIV );
  }

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


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

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

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

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

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

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

  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" );
  }

  protected final void compile_util_fromBigDecimal() throws CompilerException
View Full Code Here

  {
    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 );
View Full Code Here

    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

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    str.compile( _b );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_SEARCH", "(Ljava/lang/String;Ljava/lang/String;I)I" );
    compileConversionFromInt();
  }

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

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    str.compile( _b );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_FIND", "(Ljava/lang/String;Ljava/lang/String;I)I" );
    compileConversionFromInt();
  }

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

    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    final ExpressionCompilerForStrings str = method().stringCompiler();
    str.compile( _a );
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_ERROR", "(Ljava/lang/String;)V" );
    mv.visitInsn( Opcodes.ICONST_M1 );
    compileConversionFromInt();
  }

  private final void compile_fun_NA() 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.