[pypy-commit] pypy jit-targets: Fix tests.

arigo noreply at buildbot.pypy.org
Thu Nov 24 13:17:06 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-targets
Changeset: r49720:d0c6a5afc72a
Date: 2011-11-24 13:16 +0100
http://bitbucket.org/pypy/pypy/changeset/d0c6a5afc72a/

Log:	Fix tests.

diff --git a/pypy/jit/backend/x86/test/test_recompilation.py b/pypy/jit/backend/x86/test/test_recompilation.py
--- a/pypy/jit/backend/x86/test/test_recompilation.py
+++ b/pypy/jit/backend/x86/test/test_recompilation.py
@@ -34,8 +34,8 @@
         jump(i1, descr=targettoken)
         '''
         loop = self.interpret(ops, [0])
-        previous = loop.token._x86_frame_depth
-        assert loop.token._x86_param_depth == 0
+        previous = loop._jitcelltoken.compiled_loop_token.frame_depth
+        assert loop._jitcelltoken.compiled_loop_token.param_depth == 0
         assert self.getint(0) == 20
         ops = '''
         [i1]
@@ -115,8 +115,8 @@
         '''
         bridge = self.attach_bridge(ops, loop, 6)
         guard_op = loop.operations[6]
-        loop_frame_depth = loop.token._x86_frame_depth
-        assert loop.token._x86_param_depth == 0
+        loop_frame_depth = loop._jitcelltoken.compiled_loop_token.frame_depth
+        assert loop._jitcelltoken.compiled_loop_token.param_depth == 0
         # XXX: Maybe add enough ops to force stack on 64-bit as well?
         if IS_X86_32:
             assert guard_op.getdescr()._x86_bridge_frame_depth > loop_frame_depth


More information about the pypy-commit mailing list