Package org.objectweb.asm.commons

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


    final ArrayDescriptor desc = _array.arrayDescriptor();
    final int cols = desc.numberOfColumns();
    if (cols == 1 && isNullOrZeroOrOne( _col )) {
      // <row> - 1;
      numCompiler.compileInt( _row );
      mv.push( 1 );
      mv.visitInsn( Opcodes.ISUB );
    }
    else {
      final int rows = desc.numberOfRows();
      if (rows == 1 && isNullOrZeroOrOne( _row )) {
View Full Code Here


    else {
      final int rows = desc.numberOfRows();
      if (rows == 1 && isNullOrZeroOrOne( _row )) {
        // <col> - 1;
        numCompiler.compileInt( _col );
        mv.push( 1 );
        mv.visitInsn( Opcodes.ISUB );
      }
      else {
        // Push receiver for linearizer method.
        mtd.mv().visitVarInsn( Opcodes.ALOAD, mtd.objectInContext() );
View Full Code Here

  protected final void compileArray( ExpressionNode _arrayNode ) throws CompilerException
  {
    final GeneratorAdapter mv = mv();
    final ExpressionNodeForArrayReference arr = (ExpressionNodeForArrayReference) _arrayNode;
    mv.push( arr.arrayDescriptor().numberOfElements() );
    compileNewArray();
    int i = 0;
    for (ExpressionNode arg : arr.arguments()) {
      mv.visitInsn( Opcodes.DUP );
      mv.push( i++ );
View Full Code Here

    mv.push( arr.arrayDescriptor().numberOfElements() );
    compileNewArray();
    int i = 0;
    for (ExpressionNode arg : arr.arguments()) {
      mv.visitInsn( Opcodes.DUP );
      mv.push( i++ );
      compile( arg );
      mv.visitInsn( arrayStoreOpcode() );
    }
  }
View Full Code Here

    final int loc = localsOffset();
    incLocalsOffset( 4 );
    Label l_0 = new Label();
    Label l_1 = new Label();
    mv.visitVarInsn( Opcodes.ISTORE, 0 + loc );
    mv.push( _c );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 4 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.push( _f );
    mv.visitInsn( Opcodes.DUP );
View Full Code Here

    mv.visitVarInsn( Opcodes.ISTORE, 0 + loc );
    mv.push( _c );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 4 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.push( _f );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
View Full Code Here

    mv.visitVarInsn( Opcodes.ASTORE, 5 + loc );
    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.push( _e );
    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/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
View Full Code Here

    mv.visitJumpInsn( Opcodes.IFNULL, l_0 );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 4 + loc );
    mv.push( _e );
    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/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + 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/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.push( _h );
    mv.push( _g );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/RangeAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
View Full Code Here

    mv.visitVarInsn( Opcodes.ASTORE, 2 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 5 + loc );
    mv.push( _h );
    mv.push( _g );
    mv.visitMethodInsn( Opcodes.INVOKESPECIAL, "org/formulacompiler/runtime/internal/spreadsheet/CellAddressImpl", "<init>", "(Ljava/lang/String;II)V" );
    mv.visitVarInsn( Opcodes.ASTORE, 3 + loc );
    mv.visitTypeInsn( Opcodes.NEW, "org/formulacompiler/runtime/internal/spreadsheet/RangeAddressImpl" );
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ALOAD, 2 + loc );
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.