Rather than factor that out, maybe we should add ptradd support to the JIT, I know I've done this same thing several times at this point.
Alex On Wed, Jul 6, 2011 at 4:45 PM, wlav <[email protected]> wrote: > Author: Wim Lavrijsen <[email protected]> > Branch: reflex-support > Changeset: r45399:012bea4f7b9b > Date: 2011-07-06 16:53 -0700 > http://bitbucket.org/pypy/pypy/changeset/012bea4f7b9b/ > > Log: fix translation problem in JIT generation > > diff --git a/pypy/module/cppyy/converter.py > b/pypy/module/cppyy/converter.py > --- a/pypy/module/cppyy/converter.py > +++ b/pypy/module/cppyy/converter.py > @@ -350,6 +350,9 @@ > def __init__(self, space, cpptype): > self.cpptype = cpptype > > + # TODO: factor out the direct_ptradd into a smaller function (so that > the > + # JIT can look into the rest of the code) > + @jit.dont_look_inside > def convert_argument(self, space, w_obj): > from pypy.module.cppyy.interp_cppyy import W_CPPInstance > w_cppinstance = space.findattr(w_obj, space.wrap("_cppinstance")) > _______________________________________________ > pypy-commit mailing list > [email protected] > http://mail.python.org/mailman/listinfo/pypy-commit > -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero
_______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
