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

wlav noreply at buildbot.pypy.org
Thu Jul 7 01:45:55 CEST 2011


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"))


More information about the pypy-commit mailing list