[pypy-svn] r25403 - in pypy/dist/pypy/rpython: . lltypesystem
mwh at codespeak.net
mwh at codespeak.net
Wed Apr 5 18:11:58 CEST 2006
Author: mwh
Date: Wed Apr 5 18:11:57 2006
New Revision: 25403
Modified:
pypy/dist/pypy/rpython/llinterp.py
pypy/dist/pypy/rpython/lltypesystem/lloperation.py
Log:
add call_boehm_gc_alloc to the operation table to get the l3interp tests
passing again.
not a nice solution, but the l3interp's status is sufficiently vague that it
doesn't seem worth working on it to remove this particular hack from it now
Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py (original)
+++ pypy/dist/pypy/rpython/llinterp.py Wed Apr 5 18:11:57 2006
@@ -640,6 +640,9 @@
def op_yield_current_frame_to_caller(self):
raise NotImplementedError("yield_current_frame_to_caller")
+ def op_call_boehm_gc_alloc(self):
+ raise NotImplementedError("call_boehm_gc_alloc")
+
# operations on pyobjects!
for opname in opimpls.keys():
exec py.code.Source("""
Modified: pypy/dist/pypy/rpython/lltypesystem/lloperation.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/lloperation.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/lloperation.py Wed Apr 5 18:11:57 2006
@@ -255,6 +255,10 @@
'ptr_iszero': LLOp(canfold=True),
'cast_ptr_to_int': LLOp(sideeffects=False),
+ # _________ XXX l3interp hacks ___________
+
+ 'call_boehm_gc_alloc': LLOp(canraise=(MemoryError,)),
+
# __________ address operations __________
'raw_malloc': LLOp(canraise=(MemoryError,)),
More information about the Pypy-commit
mailing list