private void code_ipush(int value,DataOutputStream out) throws IOException {
  if (value >= -1 && value <= 5) {
    out.writeByte(opc_iconst_0 + value);
  }
 else   if (value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE) {
    out.writeByte(opc_bipush);
    out.writeByte(value & 0xFF);
  }
 else   if (value >= Short.MIN_VALUE && value <= Short.MAX_VALUE) {
    out.writeByte(opc_sipush);
    out.writeShort(value & 0xFFFF);
  }
 else {
    throw new AssertionError();
  }
}

private void code_ipush ( int value , DataOutputStream out ) throws IOException { if ( value >= - 1 && value <= 5 ) { out . writeByte ( opc_iconst_0 + value ) ; } else if ( value >= Byte . MIN_VALUE && value <= Byte . MAX_VALUE ) { out . writeByte ( opc_bipush ) ; out . writeByte ( value & 0xFF ) ; } else if ( value >= Short . MIN_VALUE && value <= Short . MAX_VALUE ) { out . writeByte ( opc_sipush ) ; out . writeShort ( value & 0xFFFF ) ; } else { throw new AssertionError ( ) ; } }
generate code to push a constant integer value on to the operand stack , using the " iconst_ < i > " , " bipush " , or " sipush " instructions depending on the size of the value . the code is written to the supplied stream .
