From aadf92e4eab0bc3376207b68edeb0b2bc2fd70e3 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 26 Jan 2014 11:18:12 -0800 Subject: [PATCH] 'Fixing' register clobbering by disabling a bunch of nonvolatile regs. --- src/alloy/backend/x64/x64_emitter.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/alloy/backend/x64/x64_emitter.cc b/src/alloy/backend/x64/x64_emitter.cc index 6700b8ed4..2e17e1543 100644 --- a/src/alloy/backend/x64/x64_emitter.cc +++ b/src/alloy/backend/x64/x64_emitter.cc @@ -106,7 +106,13 @@ int X64Emitter::Emit(HIRBuilder* builder) { GetRegBit(rbp) | GetRegBit(rsi) | GetRegBit(rdi) | - GetRegBit(xmm0); + GetRegBit(xmm0) | + + // TODO(benvanik): save so that we can use these. + GetRegBit(r8) | + GetRegBit(r9) | + GetRegBit(r10) | + GetRegBit(r11); // Function prolog. // Must be 16b aligned.