"getExpandedTypeID", "(I)I"); il.append(new SIPUSH((short)((Step)_left).getNodeType())); il.append(methodGen.loadDOM()); il.append(methodGen.loadContextNode());
/** * This constructor also applies for values of type short, char, byte * * @param cp Constant pool * @param value to be pushed */ public PUSH(ConstantPoolGen cp, int value) { if((value >= -1) && (value <= 5)) // Use ICONST_n instruction = INSTRUCTIONS[Constants.ICONST_0 + value]; else if((value >= -128) && (value <= 127)) // Use BIPUSH instruction = new BIPUSH((byte)value); else if((value >= -32768) && (value <= 32767)) // Use SIPUSH instruction = new SIPUSH((short)value); else // If everything fails create a Constant pool entry instruction = new LDC(cp.addInteger(value)); }
/** * This constructor also applies for values of type short, char, byte * * @param cp Constant pool * @param value to be pushed */ public PUSH(final ConstantPoolGen cp, final int value) { if ((value >= -1) && (value <= 5)) { instruction = InstructionConst.getInstruction(Const.ICONST_0 + value); } else if (Instruction.isValidByte(value)) { instruction = new BIPUSH((byte) value); } else if (Instruction.isValidShort(value)) { instruction = new SIPUSH((short) value); } else { instruction = new LDC(cp.addInteger(value)); } }
"getExpandedTypeID", "(I)I"); il.append(new SIPUSH((short)((Step)_left).getNodeType())); il.append(methodGen.loadDOM()); il.append(methodGen.loadContextNode());
"getExpandedTypeID", "(I)I"); il.append(new SIPUSH((short)((Step)_left).getNodeType())); il.append(methodGen.loadDOM()); il.append(methodGen.loadContextNode());
"getExpandedTypeID", "(I)I"); il.append(new SIPUSH((short)((Step)_left).getNodeType())); il.append(methodGen.loadDOM()); il.append(methodGen.loadContextNode());
break; case Const.SIPUSH: obj = new SIPUSH(); break; case Const.LDC:
break; case Const.SIPUSH: ins = new SIPUSH(r.nextShort(Short.MIN_VALUE, Short.MAX_VALUE)); break; case Const.LDC: