Package org.objectweb.asm.commons

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


  private final void compile_fun_NA() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitMethodInsn( Opcodes.INVOKESTATIC, "org/formulacompiler/runtime/internal/Runtime_v2", "fun_NA", "()V" );
    mv.visitInsn( Opcodes.ICONST_M1 );
    compileConversionFromInt();
  }

  @Override
  protected void compileFunction( ExpressionNodeForFunction _node ) throws CompilerException
View Full Code Here


  private void finalizeStaticInitializer()
  {
    if (this.initializer != null) {
      GeneratorAdapter ma = this.initializer;
      ma.visitInsn( Opcodes.RETURN );
      endMethod( ma );
      this.initializer = null;
    }
  }
View Full Code Here

    Label l_0 = new Label();
    Label l_1 = new Label();
    compile( _a );
    compile( _b );
    compile( _c );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitInsn( Opcodes.LCMP );
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
View Full Code Here

    Label l_1 = new Label();
    compile( _a );
    compile( _b );
    compile( _c );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitInsn( Opcodes.LCMP );
    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 );
View Full Code Here

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

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

  protected final void compile_util_toByte() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.L2I );
    mv.visitInsn( Opcodes.I2B );
  }

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

  protected final void compile_util_toByte() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.L2I );
    mv.visitInsn( Opcodes.I2B );
  }

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

  protected final void compile_util_toShort() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.L2I );
    mv.visitInsn( Opcodes.I2S );
  }

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

  protected final void compile_util_toShort() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    mv.visitInsn( Opcodes.L2I );
    mv.visitInsn( Opcodes.I2S );
  }

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

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

  protected final void compile_util_toLong() throws CompilerException
  {
    final GeneratorAdapter mv = mv();
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.