Ejemplo n.º 1
0
 /**
  * Check if the delay slot instruction is modifying the given register.
  *
  * @param context the current compiler context
  * @param registerIndex the register to be checked
  * @return true if the delay slot instruction is modifying the register false otherwise.
  */
 private boolean isDelaySlotWritingRegister(CompilerContext context, int registerIndex) {
   CodeInstruction delaySlotCodeInstruction = getDelaySlotCodeInstruction(context);
   if (delaySlotCodeInstruction == null) {
     return false;
   }
   return delaySlotCodeInstruction.isWritingRegister(registerIndex);
 }