Package org.objectweb.asm.commons

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


    mv.visitInsn( Opcodes.ACONST_NULL );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitLabel( l_1 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/SectionInfoImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.push( _b );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ILOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/SectionInfoImpl", "<init>", "(Ljava/lang/String;Lorg/formulacompiler/runtime/spreadsheet/RangeAddress;I)V" );
  }
View Full Code Here


    compile_environment();
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "computationListener", "()Lorg/formulacompiler/runtime/event/CellComputationListener;" );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.push( _b );
    mv.push( _c );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl" );
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "org/formulacompiler/runtime/internal/Environment", "computationListener", "()Lorg/formulacompiler/runtime/event/CellComputationListener;" );
    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.push( _b );
    mv.push( _c );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl" );
    mv.visitInsn( Opcodes.DUP );
View Full Code Here

    mv.visitVarInsn( Opcodes.ASTORE, 1 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.push( _b );
    mv.push( _c );
    mv.push( _d );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
View Full Code Here

    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
    mv.push( _e );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellInfoImpl", "<init>", "(Lorg/formulacompiler/runtime/spreadsheet/CellAddress;Ljava/lang/String;)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/spreadsheet/SpreadsheetCellComputationEvent" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
View Full Code Here

    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/spreadsheet/SpreadsheetCellComputationEvent" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    compile_sectionInfo();
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.push( _f );
    mv.push( _g );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/spreadsheet/SpreadsheetCellComputationEvent", "<init>", "(Lorg/formulacompiler/runtime/spreadsheet/CellInfo;Lorg/formulacompiler/runtime/spreadsheet/SectionInfo;Ljava/lang/Object;ZZ)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 4 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
View Full Code Here

    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 3 + loc );
    compile_sectionInfo();
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.push( _f );
    mv.push( _g );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/spreadsheet/SpreadsheetCellComputationEvent", "<init>", "(Lorg/formulacompiler/runtime/spreadsheet/CellInfo;Lorg/formulacompiler/runtime/spreadsheet/SectionInfo;Ljava/lang/Object;ZZ)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 4 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 1 + loc );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEINTERFACE, "org/formulacompiler/runtime/event/CellComputationListener", "cellCalculated", "(Lorg/formulacompiler/runtime/event/CellComputationEvent;)V" );
View Full Code Here

  @Override
  protected final void compileCount( ExpressionNodeForCount _node ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    mv.push( _node.staticValueCount() );

    final SectionModel[] subs = _node.subSectionModels();
    final int[] cnts = _node.subSectionStaticValueCounts();
    for (int i = 0; i < subs.length; i++) {
      SubSectionCompiler sub = sectionInContext().subSectionCompiler( subs[ i ] );
View Full Code Here

      SubSectionCompiler sub = sectionInContext().subSectionCompiler( subs[ i ] );
      mv.visitVarInsn( Opcodes.ALOAD, method().objectInContext() );
      sectionInContext().compileCallToGetterFor( mv, sub );
      mv.arrayLength();
      if (cnts[ i ] != 1) {
        mv.push( cnts[ i ] );
        mv.visitInsn( Opcodes.IMUL );
      }
      mv.visitInsn( Opcodes.IADD );
    }
View Full Code Here

    // In reset(), do:
    if (section().hasReset()) {
      // h$<x> = false;
      GeneratorAdapter r = section().resetter();
      r.loadThis();
      r.push( false );
      r.putField( classType(), cachedIndicatorName, Type.BOOLEAN_TYPE );
    }
  }

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.