[pypy-svn] r32776 - in pypy/dist/pypy/rpython: . lltypesystem

pedronis at codespeak.net pedronis at codespeak.net
Sun Oct 1 04:04:45 CEST 2006


Author: pedronis
Date: Sun Oct  1 04:04:43 2006
New Revision: 32776

Modified:
   pypy/dist/pypy/rpython/llinterp.py
   pypy/dist/pypy/rpython/lltypesystem/lloperation.py
Log:
some such op is needed by the i386 codegen machinary right now



Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py	(original)
+++ pypy/dist/pypy/rpython/llinterp.py	Sun Oct  1 04:04:43 2006
@@ -739,6 +739,10 @@
         assert lltype.typeOf(value) == typ
         getattr(addr, str(typ).lower())[offset] = value
 
+    # ______ for the JIT ____________
+    def op_call_boehm_gc_alloc(self):
+        raise NotImplementedError("call_boehm_gc_alloc")
+
     # ____________________________________________________________
     # Overflow-detecting variants
 

Modified: pypy/dist/pypy/rpython/lltypesystem/lloperation.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/lloperation.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/lloperation.py	Sun Oct  1 04:04:43 2006
@@ -342,6 +342,10 @@
     'cast_adr_to_int':      LLOp(canfold=True),
     'cast_int_to_adr':      LLOp(canfold=True),   # not implemented in llinterp
 
+    # __________ used by the JIT ________
+
+    'call_boehm_gc_alloc':  LLOp(canraise=(MemoryError,)),
+
     # __________ GC operations __________
 
     'gc__collect':          LLOp(canunwindgc=True),



More information about the Pypy-commit mailing list