[pypy-commit] pypy emit-call-x86: fix
arigo
noreply at buildbot.pypy.org
Sun May 19 20:47:11 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: emit-call-x86
Changeset: r64343:272efc3772c8
Date: 2013-05-19 20:46 +0200
http://bitbucket.org/pypy/pypy/changeset/272efc3772c8/
Log: fix
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
@@ -348,12 +348,13 @@
def _unused_gpr(self, hint):
i = self.next_arg_gpr
self.next_arg_gpr = i + 1
- if hint in self.DONT_MOVE_GPR:
- return hint
try:
- return self.ARGUMENTS_GPR[i]
+ res = self.ARGUMENTS_GPR[i]
except IndexError:
return None
+ if hint in self.DONT_MOVE_GPR:
+ res = hint
+ return res
def _unused_xmm(self):
i = self.next_arg_xmm
More information about the pypy-commit
mailing list