[pypy-commit] pypy vmprof: fix

arigo noreply at buildbot.pypy.org
Wed Feb 4 16:38:46 CET 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: vmprof
Changeset: r75706:ded7218f97ef
Date: 2015-02-04 16:38 +0100
http://bitbucket.org/pypy/pypy/changeset/ded7218f97ef/

Log:	fix

diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -302,14 +302,13 @@
         hop.exception_cannot_occur()
         T = hop.args_r[0].lowleveltype.TO
         v = hop.inputarg(hop.args_r[0], arg=0)
-        c_super = hop.inputconst(lltype.Void, 'super')
         while not hasattr(T, 'vable_token'):
             if not hasattr(T, 'super'):
                 # we're not really in a jitted build
                 return hop.inputconst(llmemory.GCREF,
                                       lltype.nullptr(llmemory.GCREF.TO))
-            v = hop.genop('getfield', [v, c_super], resulttype=T.super)
             T = T.super
+        v = hop.genop('cast_pointer', [v], resulttype=lltype.Ptr(T))
         c_vable_token = hop.inputconst(lltype.Void, 'vable_token')
         return hop.genop('getfield', [v, c_vable_token],
                          resulttype=llmemory.GCREF)


More information about the pypy-commit mailing list