[pypy-commit] pypy backend-vector-ops: fix test jump

fijal noreply at buildbot.pypy.org
Wed Feb 1 15:13:05 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: backend-vector-ops
Changeset: r52021:0fef229172ef
Date: 2012-02-01 16:12 +0200
http://bitbucket.org/pypy/pypy/changeset/0fef229172ef/

Log:	fix test jump

diff --git a/pypy/jit/backend/x86/test/test_jump.py b/pypy/jit/backend/x86/test/test_jump.py
--- a/pypy/jit/backend/x86/test/test_jump.py
+++ b/pypy/jit/backend/x86/test/test_jump.py
@@ -3,15 +3,20 @@
 from pypy.jit.backend.x86.regalloc import X86FrameManager
 from pypy.jit.backend.x86.jump import remap_frame_layout
 from pypy.jit.backend.x86.jump import remap_frame_layout_mixed
-from pypy.jit.metainterp.history import INT
+from pypy.jit.metainterp.history import INT, BoxInt, BoxFloat
 
-frame_pos = X86FrameManager.frame_pos
+def frame_pos(pos, tp):
+    if tp == INT:
+        box = BoxInt()
+    else:
+        box = BoxFloat()
+    return X86FrameManager.frame_pos(pos, box)
 
 class MockAssembler:
     def __init__(self):
         self.ops = []
 
-    def regalloc_mov(self, from_loc, to_loc):
+    def regalloc_mov(self, v, from_loc, to_loc):
         self.ops.append(('mov', from_loc, to_loc))
 
     def regalloc_push(self, loc):
@@ -396,7 +401,7 @@
         (-488, -488),   # - one self-application of -488
         ]
     class FakeAssembler:
-        def regalloc_mov(self, src, dst):
+        def regalloc_mov(self, v, src, dst):
             print "mov", src, dst
         def regalloc_push(self, x):
             print "push", x


More information about the pypy-commit mailing list