[pypy-svn] r51389 - in pypy/dist/pypy/jit/codegen: cli/test test
antocuni at codespeak.net
antocuni at codespeak.net
Mon Feb 11 16:42:53 CET 2008
Author: antocuni
Date: Mon Feb 11 16:42:52 2008
New Revision: 51389
Modified:
pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
pypy/dist/pypy/jit/codegen/test/rgenop_tests.py
Log:
this test passes out of the box, but we need to rename the function
from "f" to "fn" else gencli thinks it's a char and can't find the
appropriate overload for CreateDynamicMethod; it's a gencli bug, but
it's much easier to insert the workaround here.
Modified: pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py (original)
+++ pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py Mon Feb 11 16:42:52 2008
@@ -25,6 +25,7 @@
'test_tight_loop',
'test_jump_to_block_with_many_vars',
'test_same_as',
+ 'test_pause_and_resume',
]
for p in prefixes:
Modified: pypy/dist/pypy/jit/codegen/test/rgenop_tests.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/test/rgenop_tests.py (original)
+++ pypy/dist/pypy/jit/codegen/test/rgenop_tests.py Mon Feb 11 16:42:52 2008
@@ -549,7 +549,7 @@
# return w
signed_kind = rgenop.kindToken(lltype.Signed)
sigtoken = rgenop.sigToken(T.FUNC)
- builder, gv_callable, [gv_x] = rgenop.newgraph(sigtoken, "f")
+ builder, gv_callable, [gv_x] = rgenop.newgraph(sigtoken, "fn")
builder.start_writing()
gv_one = rgenop.genconst(1)
@@ -1322,7 +1322,6 @@
gvs.append(builder2.genop_call(sigtoken, gv_verysmall_callable,
[gv_x2]))
-
while len(gvs) > 1:
gvs.append(builder2.genop2("int_add", gvs.pop(), gvs.pop()))
More information about the Pypy-commit
mailing list