Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to