コード例 #1
0
 /**
  * Insert an instruction before instruction (handle) ih contained in this list.
  *
  * @param ih where to insert to the instruction list
  * @param i Instruction to insert
  * @return instruction handle of the first inserted instruction
  */
 public BranchHandle insert(InstructionHandle ih, BranchInstruction i) {
   BranchHandle bh = BranchHandle.getBranchHandle(i);
   InstructionList il = new InstructionList();
   il.append(bh);
   insert(ih, il);
   return bh;
 }
コード例 #2
0
 /**
  * Insert a branch instruction at start of this list.
  *
  * @param i branch instruction to insert
  * @return branch instruction handle of the appended instruction
  */
 public BranchHandle insert(BranchInstruction i) {
   BranchHandle ih = BranchHandle.getBranchHandle(i);
   insert(ih);
   return ih;
 }
コード例 #3
0
 /**
  * Append a branch instruction to the end of this list.
  *
  * @param i branch instruction to append
  * @return branch instruction handle of the appended instruction
  */
 public BranchHandle append(BranchInstruction i) {
   BranchHandle ih = BranchHandle.getBranchHandle(i);
   append(ih);
   return ih;
 }