[pypy-svn] r25410 - in pypy/dist/pypy: rpython rpython/lltypesystem translator/c

mwh at codespeak.net mwh at codespeak.net
Wed Apr 5 19:29:39 CEST 2006


Author: mwh
Date: Wed Apr  5 19:29:37 2006
New Revision: 25410

Modified:
   pypy/dist/pypy/rpython/llinterp.py
   pypy/dist/pypy/rpython/lltypesystem/lloperation.py
   pypy/dist/pypy/translator/c/funcgen.py
Log:
(pedronis, mwh)
re-introduce bare_setfield for test_wrapping.


Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py	(original)
+++ pypy/dist/pypy/rpython/llinterp.py	Wed Apr  5 19:29:37 2006
@@ -391,6 +391,8 @@
                 write_barrier = gc.get_funcptr_write_barrier()
                 result = self.op_direct_call(write_barrier, *args)
 
+    op_bare_setfield = op_setfield
+
     def op_getarrayitem(self, array, index):
         return array[index]
 

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 19:29:37 2006
@@ -255,6 +255,7 @@
     'getsubstruct':         LLOp(canfold=True),
     'getarraysubstruct':    LLOp(canfold=True),
     'setfield':             LLOp(),
+    'bare_setfield':        LLOp(),
     'setarrayitem':         LLOp(),
     'cast_pointer':         LLOp(canfold=True),
     'ptr_eq':               LLOp(canfold=True),

Modified: pypy/dist/pypy/translator/c/funcgen.py
==============================================================================
--- pypy/dist/pypy/translator/c/funcgen.py	(original)
+++ pypy/dist/pypy/translator/c/funcgen.py	Wed Apr  5 19:29:37 2006
@@ -394,6 +394,8 @@
         return self.generic_set(op, '%s->%s' % (self.expr(op.args[0]),
                                                 fieldname))
 
+    OP_BARE_SETFIELD = OP_SETFIELD
+
     def OP_GETSUBSTRUCT(self, op):
         return self.OP_GETFIELD(op, ampersand='&')
 



More information about the Pypy-commit mailing list