[pypy-commit] pypy reflex-support: fix translation problem in JIT generation

Alex Gaynor alex.gaynor at gmail.com
Thu Jul 7 01:56:05 CEST 2011


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 <noreply at buildbot.pypy.org> wrote:

> Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
> 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
> pypy-commit at python.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-commit/attachments/20110706/3be94e48/attachment.html>


More information about the pypy-commit mailing list