Commits

Hakan Ardo  committed ad1ed00

dont can_enter_jit on forward jumps

  • Participants
  • Parent commits 960797b
  • Branches jit-usable_retrace_3

Comments (0)

Files changed (1)

File pypy/jit/metainterp/test/test_random_loops.py

                     loop_stack.append(pc)
                 elif op == '}':
                     if value.value():
-                        pc -= offsets[pc]
+                        pc -= offsets[pc] - 1
+                        prev = current
                         myjitdriver.can_enter_jit(pc=pc, a=a, b=b, c=c, d=d, e=e, value=value, prev=prev,
                                                   loop_stack=loop_stack)
+                        continue
                     else:
                         loop_stack.pop()
                 elif op == 'x':
                     if not value.value():
                         value = IntBox(1)
                         pc += offsets[pc]
-                        myjitdriver.can_enter_jit(pc=pc, a=a, b=b, c=c, d=d, e=e, value=value, prev=prev,
-                                                  loop_stack=loop_stack)
                 elif op == ')':
                     value = IntBox(0)
                 elif op in ' \n':