[pypy-commit] pypy remove-globals-in-jit: in-progress

arigo noreply at buildbot.pypy.org
Fri Nov 9 16:30:06 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: remove-globals-in-jit
Changeset: r58809:9425100f5e76
Date: 2012-11-08 14:07 +0100
http://bitbucket.org/pypy/pypy/changeset/9425100f5e76/

Log:	in-progress

diff --git a/pypy/jit/backend/llgraph/runner.py b/pypy/jit/backend/llgraph/runner.py
--- a/pypy/jit/backend/llgraph/runner.py
+++ b/pypy/jit/backend/llgraph/runner.py
@@ -376,15 +376,6 @@
     bh_call_v = _do_call
 
     def bh_getfield_gc(self, p, descr):
-        if isinstance(descr, JFDescrDescr):
-            result = p.latest_descr
-            if result is None:
-                return lltype.nullptr(llmemory.GCREF.TO)
-            # <XXX> HACK
-            result._TYPE = llmemory.GCREF
-            result._identityhash = lambda: hash(result)   # for rd_hash()
-            # <XXX/>
-            return result
         p = support.cast_arg(lltype.Ptr(descr.S), p)
         return support.cast_result(descr.FIELD, getattr(p, descr.fieldname))
 
@@ -447,9 +438,6 @@
     bh_setarrayitem_raw_f = bh_setarrayitem_raw
 
     def bh_getinteriorfield_gc(self, a, index, descr):
-        if isinstance(descr, JFValueDescr):
-            assert isinstance(a, LLFrame)
-            return a.framecontent[index]
         array = a._obj.container
         return support.cast_result(descr.FIELD,
                           getattr(array.getitem(index), descr.fieldname))


More information about the pypy-commit mailing list