[pypy-commit] pypy jit-short_from_state: dont derefere opaque pointers in short preamble

hakanardo noreply at buildbot.pypy.org
Fri Aug 5 14:42:50 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short_from_state
Changeset: r46288:1c804054e46f
Date: 2011-08-05 14:24 +0200
http://bitbucket.org/pypy/pypy/changeset/1c804054e46f/

Log:	dont derefere opaque pointers in short preamble

diff --git a/pypy/jit/metainterp/optimizeopt/heap.py b/pypy/jit/metainterp/optimizeopt/heap.py
--- a/pypy/jit/metainterp/optimizeopt/heap.py
+++ b/pypy/jit/metainterp/optimizeopt/heap.py
@@ -127,6 +127,8 @@
             return
         for structvalue in self._cached_fields_getfield_op.keys():
             op = self._cached_fields_getfield_op[structvalue]
+            if optimizer.getvalue(op.getarg(0)) in optimizer.opaque_pointers:
+                continue
             if op and structvalue in self._cached_fields:
                 if op.getopnum() == rop.SETFIELD_GC:
                     result = op.getarg(1)


More information about the pypy-commit mailing list