Beispiel #1
0
void Jit::CallProtectedFunction(const void *func, const OpArg &arg1, const u32 arg2, const u32 arg3)
{
	// On x64, we need to save R8, which is caller saved.
	thunks.Enter(this);
	ABI_CallFunctionACC(func, arg1, arg2, arg3);
	thunks.Leave(this);
}
Beispiel #2
0
void Jit::CallProtectedFunction(void *func, const OpArg &arg1, const u32 arg2, const u32 arg3)
{
	// On x64, we need to save R8, which is caller saved.
	ABI_CallFunction((void *)thunks.GetSaveRegsFunction());
	ABI_CallFunctionACC(func, arg1, arg2, arg3);
	ABI_CallFunction((void *)thunks.GetLoadRegsFunction());
}