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.<div><br></div><div>Alex<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 4:45 PM, wlav <span dir="ltr"><<a href="mailto:noreply@buildbot.pypy.org">noreply@buildbot.pypy.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Author: Wim Lavrijsen <<a href="mailto:WLavrijsen@lbl.gov">WLavrijsen@lbl.gov</a>><br>
Branch: reflex-support<br>
Changeset: r45399:012bea4f7b9b<br>
Date: 2011-07-06 16:53 -0700<br>
<a href="http://bitbucket.org/pypy/pypy/changeset/012bea4f7b9b/" target="_blank">http://bitbucket.org/pypy/pypy/changeset/012bea4f7b9b/</a><br>
<br>
Log: fix translation problem in JIT generation<br>
<br>
diff --git a/pypy/module/cppyy/converter.py b/pypy/module/cppyy/converter.py<br>
--- a/pypy/module/cppyy/converter.py<br>
+++ b/pypy/module/cppyy/converter.py<br>
@@ -350,6 +350,9 @@<br>
def __init__(self, space, cpptype):<br>
self.cpptype = cpptype<br>
<br>
+ # TODO: factor out the direct_ptradd into a smaller function (so that the<br>
+ # JIT can look into the rest of the code)<br>
+ @jit.dont_look_inside<br>
def convert_argument(self, space, w_obj):<br>
from pypy.module.cppyy.interp_cppyy import W_CPPInstance<br>
w_cppinstance = space.findattr(w_obj, space.wrap("_cppinstance"))<br>
_______________________________________________<br>
pypy-commit mailing list<br>
<a href="mailto:pypy-commit@python.org">pypy-commit@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pypy-commit" target="_blank">http://mail.python.org/mailman/listinfo/pypy-commit</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>"I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)<br>"The people's good is the highest law." -- Cicero<br>
<br>
</div>