Author: David Schneider <[email protected]>
Branch: arm-backend-2
Changeset: r50326:0cde4d93fe16
Date: 2011-12-09 16:15 +0100
http://bitbucket.org/pypy/pypy/changeset/0cde4d93fe16/

Log:    (arigo, bivab): write the correct value at the force index in the
        frame

diff --git a/pypy/jit/backend/arm/runner.py b/pypy/jit/backend/arm/runner.py
--- a/pypy/jit/backend/arm/runner.py
+++ b/pypy/jit/backend/arm/runner.py
@@ -114,7 +114,7 @@
         fail_index = rffi.cast(TP, addr_of_force_index)[0]
         assert fail_index >= 0, "already forced!"
         faildescr = self.get_fail_descr_from_number(fail_index)
-        rffi.cast(TP, addr_of_force_index)[0] = -1
+        rffi.cast(TP, addr_of_force_index)[0] = ~fail_index
         # start of "no gc operation!" block
         frame_depth = faildescr._arm_frame_depth*WORD
         addr_end_of_frame = (addr_of_force_index -
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to