private Instruction addInstruction(int opcode) { return addInstruction(createInstruction(opcode)); }
private Instruction addInstruction(int opcode) { return addInstruction(createInstruction(opcode)); }
/** * Adds a copy of the given instruction. * * @return the newly added instruction */ public Instruction add(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.add(newIns); return newIns; }
/** * Adds a copy of the given instruction. * * @return the newly added instruction */ public Instruction add(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.add(newIns); return newIns; }
/** * Replaces the last iterated instruction with a copy of the given one. * This method will also make sure that all jump points * that referenced the old opcode are updated correctly. * * @return the newly added instruction * @see ListIterator#set */ public Instruction set(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.set(newIns); return newIns; }
/** * Replaces the last iterated instruction with a copy of the given one. * This method will also make sure that all jump points * that referenced the old opcode are updated correctly. * * @return the newly added instruction * @see ListIterator#set */ public Instruction set(Instruction ins) { Instruction newIns = createInstruction(ins.getOpcode()); newIns.read(ins); _ci.set(newIns); return newIns; }
private void readCode(DataInput in, int len) throws IOException { _head.next = _tail; _tail.prev = _head; _size = 0; _byteIndexesValid = true; beforeFirst(); Instruction ins; for (int byteIndex = 0; byteIndex < len;) { ins = createInstruction(in.readUnsignedByte()); _ci.addInternal(ins); ins.byteIndex = byteIndex; ins.read(in); byteIndex += ins.getLength(); } updateInstructionPointers(); beforeFirst(); // sanity check if (!_byteIndexesValid) throw new IllegalStateException(); }
private void readCode(DataInput in, int len) throws IOException { _head.next = _tail; _tail.prev = _head; _size = 0; _byteIndexesValid = true; beforeFirst(); Instruction ins; for (int byteIndex = 0; byteIndex < len;) { ins = createInstruction(in.readUnsignedByte()); _ci.addInternal(ins); ins.byteIndex = byteIndex; ins.read(in); byteIndex += ins.getLength(); } updateInstructionPointers(); beforeFirst(); // sanity check if (!_byteIndexesValid) throw new IllegalStateException(); }
entry = entry.next) { origIns = (Instruction) entry; ins = createInstruction(origIns.getOpcode()); _ci.addInternal(ins); if (!(ins instanceof ConstantInstruction))
entry = entry.next) { origIns = (Instruction) entry; ins = createInstruction(origIns.getOpcode()); _ci.addInternal(ins); if (!(ins instanceof ConstantInstruction))