[pypy-commit] pypy jitframe-on-heap: fix the tests
bivab
noreply at buildbot.pypy.org
Tue Mar 12 17:45:59 CET 2013
Author: David Schneider <david.schneider at picle.org>
Branch: jitframe-on-heap
Changeset: r62319:c1c13193ef64
Date: 2013-03-12 17:36 +0100
http://bitbucket.org/pypy/pypy/changeset/c1c13193ef64/
Log: fix the tests
diff --git a/rpython/jit/backend/llsupport/test/test_gc_integration.py b/rpython/jit/backend/llsupport/test/test_gc_integration.py
--- a/rpython/jit/backend/llsupport/test/test_gc_integration.py
+++ b/rpython/jit/backend/llsupport/test/test_gc_integration.py
@@ -15,6 +15,7 @@
from rpython.jit.backend.llsupport.test.test_regalloc_integration import BaseTestRegalloc
from rpython.jit.codewriter.effectinfo import EffectInfo
+from rpython.jit.codewriter import longlong
from rpython.rlib.objectmodel import invoke_around_extcall
CPU = getcpuclass()
@@ -510,6 +511,8 @@
val = 0
for i in range(len(frame.jf_gcmap)):
item = frame.jf_gcmap[i]
+ if item == 0:
+ val += WORD * 8
while item != 0:
if item & 1:
res.append(val)
@@ -623,9 +626,11 @@
cpu.gc_ll_descr.init_nursery(20)
cpu.setup_once()
cpu.compile_loop(loop.inputargs, loop.operations, token)
- frame = cpu.execute_token(token, 2.3)
+ arg = longlong.getfloatstorage(2.3)
+ frame = cpu.execute_token(token, arg)
ofs = cpu.get_baseofs_of_frame_field()
f = cpu.read_float_at_mem(frame, ofs)
+ f = longlong.getrealfloat(f)
assert f == 2.3 + 1.2
def test_malloc_1(self):
More information about the pypy-commit
mailing list