JIT: use XCHG in MOVTwo

Roughly the same speed or slightly faster depending on CPU; mostly just cleaner
since we don't have to pass in a temp.
This commit is contained in:
Fiora
2014-09-10 22:17:38 -07:00
parent 67f7e7e28b
commit 5726e0cdfb
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -756,7 +756,7 @@ public:
void ABI_CallFunctionRR(void *func, X64Reg reg1, X64Reg reg2);
// Helper method for the above, or can be used separately.
void MOVTwo(int bits, Gen::X64Reg dst1, Gen::X64Reg src1, Gen::X64Reg dst2, Gen::X64Reg src2, Gen::X64Reg temp);
void MOVTwo(int bits, Gen::X64Reg dst1, Gen::X64Reg src1, Gen::X64Reg dst2, Gen::X64Reg src2);
// Saves/restores the registers and adjusts the stack to be aligned as
// required by the ABI, where the previous alignment was as specified.