Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r90987:9db85c8cc752
Date: 2017-04-06 16:08 +0200
http://bitbucket.org/pypy/pypy/changeset/9db85c8cc752/

Log:    Hard to test, but I think this is needed

diff --git a/rpython/jit/backend/x86/assembler.py 
b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -1707,6 +1707,10 @@
                 self.mc.patch_forward_jump(j_location)
             except codebuf.ShortJumpTooFar:
                 pass    # ignore this case
+            else:
+                # succeeded: forget the saved value of the scratch
+                # register here
+                self.mc.forget_scratch_register()
 
     def genop_guard_guard_not_invalidated(self, guard_op, guard_token,
                                           locs, ign):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to