Example #1
0
 /**
  * Map the registers used in the instruction as sources to the specified register. If the register
  * is not used as a source register, no change is made.
  *
  * @param oldReg is the previous source register
  * @param newReg is the new source register
  */
 public void remapSrcRegister(int oldReg, int newReg) {
   super.remapSrcRegister(oldReg, newReg);
   if (reg == oldReg) reg = newReg;
 }
Example #2
0
  public void remapRegisters(int[] map) {
    super.remapRegisters(map);

    if (reg != -1) reg = map[reg];
  }