service/method-inliner/CFGInliner.cpp
/*
 * Return the equivalent move opcode for the given return opcode
 */
Return the equivalent move opcode for the given return opcode
Return the equivalent move opcode for the given return opcode
IROpcode CFGInliner::return_to_move(IROpcode op) {
  switch (op) {
  case OPCODE_RETURN_VOID:
    return OPCODE_NOP;
  case OPCODE_RETURN:
    return OPCODE_MOVE;
  case OPCODE_RETURN_WIDE:
    return OPCODE_MOVE_WIDE;
  case OPCODE_RETURN_OBJECT:
    return OPCODE_MOVE_OBJECT;
  default:
    not_reached_log("Expected return op, got %s", SHOW(op));
  }
}
IROpcode CFGInliner :: return_to_move ( IROpcode op ) { switch ( op ) { case OPCODE_RETURN_VOID : return OPCODE_NOP ; case OPCODE_RETURN : return OPCODE_MOVE ; case OPCODE_RETURN_WIDE : return OPCODE_MOVE_WIDE ; case OPCODE_RETURN_OBJECT : return OPCODE_MOVE_OBJECT ; default : not_reached_log ( " " , SHOW ( op ) ) ; } }
Return the equivalent move opcode for the given return opcode
Return the equivalent move opcode for the given return opcode