Author: Armin Rigo <[email protected]>
Branch:
Changeset: r79290:2269d1da2105
Date: 2015-08-30 10:54 +0200
http://bitbucket.org/pypy/pypy/changeset/2269d1da2105/
Log: No-op (hopefully): avoid using edi here if we can avoid it. I think
it was safe anyway to do so at that point, but ecx is always a free
reg and this makes future mistakes less likely.
diff --git a/rpython/jit/backend/x86/callbuilder.py
b/rpython/jit/backend/x86/callbuilder.py
--- a/rpython/jit/backend/x86/callbuilder.py
+++ b/rpython/jit/backend/x86/callbuilder.py
@@ -266,9 +266,9 @@
rpy_errno = llerrno.get_rpy_errno_offset(self.asm.cpu)
p_errno = llerrno.get_p_errno_offset(self.asm.cpu)
tlofsreg = self.get_tlofs_reg() # => esi or r12 (possibly reused)
- mc.MOV_rm(edi.value, (tlofsreg.value, p_errno))
- mc.MOV32_rm(edi.value, (edi.value, 0))
- mc.MOV32_mr((tlofsreg.value, rpy_errno), edi.value)
+ mc.MOV_rm(ecx.value, (tlofsreg.value, p_errno))
+ mc.MOV32_rm(ecx.value, (ecx.value, 0))
+ mc.MOV32_mr((tlofsreg.value, rpy_errno), ecx.value)
if handle_lasterror and (save_err & (rffi.RFFI_SAVE_LASTERROR |
rffi.RFFI_SAVE_WSALASTERROR)):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit