[pypy-svn] r78522 - pypy/branch/jit-unroll-loops/pypy/jit/metainterp/optimizeopt
arigo at codespeak.net
arigo at codespeak.net
Sat Oct 30 13:54:45 CEST 2010
Author: arigo
Date: Sat Oct 30 13:54:44 2010
New Revision: 78522
Modified:
pypy/branch/jit-unroll-loops/pypy/jit/metainterp/optimizeopt/heap.py
Log:
For now, kill {get,set}field_raw support. If we want it we need to be more careful.
For example, a signal handler could have changed the field -- so we would need some
'volatile' declarations like C.
Modified: pypy/branch/jit-unroll-loops/pypy/jit/metainterp/optimizeopt/heap.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/metainterp/optimizeopt/heap.py (original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/metainterp/optimizeopt/heap.py Sat Oct 30 13:54:44 2010
@@ -107,7 +107,6 @@
return
opnum = op.getopnum()
if (opnum == rop.SETFIELD_GC or
- opnum == rop.SETFIELD_RAW or
opnum == rop.SETARRAYITEM_GC or
opnum == rop.DEBUG_MERGE_POINT):
return
@@ -241,10 +240,6 @@
# remember the result of future reads of the field
self.cache_field_value(op.getdescr(), value, fieldvalue, write=True)
- optimize_GETFIELD_RAW = optimize_GETFIELD_GC
- optimize_SETFIELD_RAW = optimize_SETFIELD_GC
- # FIXME: Do we need separate caches for raw and gc?
-
def optimize_GETARRAYITEM_GC(self, op):
value = self.getvalue(op.getarg(0))
indexvalue = self.getvalue(op.getarg(1))
More information about the Pypy-commit
mailing list