return ((hash << 5) - hash) ^ mono_metadata_type_hash (&t1->data.array->eklass->byval_arg);
case MONO_TYPE_GENERICINST:
return ((hash << 5) - hash) ^ 0;
+ default:
+ return hash;
}
- return hash;
}
/*
ji = mono_patch_info_list_prepend (ji, code - start, MONO_PATCH_INFO_JIT_ICALL_ADDR, corlib ? "mono_amd64_throw_corlib_exception" : "mono_amd64_throw_exception");
amd64_mov_reg_membase (code, AMD64_R11, AMD64_RIP, 0, 8);
} else {
- amd64_mov_reg_imm (code, AMD64_R11, resume_unwind ? (mono_amd64_resume_unwind) : (corlib ? (gpointer)mono_amd64_throw_corlib_exception : (gpointer)mono_amd64_throw_exception));
+ amd64_mov_reg_imm (code, AMD64_R11, resume_unwind ? ((gpointer)mono_amd64_resume_unwind) : (corlib ? (gpointer)mono_amd64_throw_corlib_exception : (gpointer)mono_amd64_throw_exception));
}
amd64_call_reg (code, AMD64_R11);
amd64_breakpoint (code);
/* call *<OFFSET>(%rip) */
*(guint32*)(code + 2) = ((guint32)(guint64)target) - 7;
}
- else if ((code [0] == 0xe8)) {
+ else if (code [0] == 0xe8) {
/* call <DISP> */
gint64 disp = (guint8*)target - (guint8*)code;
g_assert (amd64_is_imm32 (disp));
return FALSE;
case MONO_TYPE_VALUETYPE:
return FALSE;
+ default:
+ return FALSE;
}
- return FALSE;
}
#ifndef DISABLE_JIT
return OP_EXPAND_R4;
case MONO_TYPE_R8:
return OP_EXPAND_R8;
+ default:
+ g_assert_not_reached ();
}
- g_assert_not_reached ();
}
static int
case MONO_TYPE_U4:
case MONO_TYPE_R4:
return OP_EXTRACT_I4;
+ default:
+ g_assert_not_reached ();
}
- g_assert_not_reached ();
}
/*Returns the amount to shift the element index to get the dword it belongs to*/
case MONO_TYPE_U4:
case MONO_TYPE_R4:
return 0;
+ default:
+ g_assert_not_reached ();
}
- g_assert_not_reached ();
}
static G_GNUC_UNUSED int
return OP_INSERT_R4;
case MONO_TYPE_R8:
return OP_INSERT_R8;
+ default:
+ g_assert_not_reached ();
}
- g_assert_not_reached ();
}
static int
return OP_INSERTX_R4_SLOW;
case MONO_TYPE_R8:
return OP_INSERTX_R8_SLOW;
+ default:
+ g_assert_not_reached ();
}
- g_assert_not_reached ();
}
static MonoInst*