[pypy-svn] r79444 - pypy/branch/reflex-support/pypy/module/cppyy

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Nov 24 10:29:06 CET 2010


Author: cfbolz
Date: Wed Nov 24 10:29:04 2010
New Revision: 79444

Modified:
   pypy/branch/reflex-support/pypy/module/cppyy/converter.py
Log:
For now just hide the direct_ptradd. Should be fixed later.


Modified: pypy/branch/reflex-support/pypy/module/cppyy/converter.py
==============================================================================
--- pypy/branch/reflex-support/pypy/module/cppyy/converter.py	(original)
+++ pypy/branch/reflex-support/pypy/module/cppyy/converter.py	Wed Nov 24 10:29:04 2010
@@ -3,6 +3,7 @@
 from pypy.interpreter.buffer import Buffer
 from pypy.rpython.lltypesystem import rffi, lltype
 from pypy.rlib.rarithmetic import r_singlefloat
+from pypy.rlib import jit
 
 from pypy.module._rawffi.interp_rawffi import unpack_simple_shape
 from pypy.module._rawffi.array import W_Array
@@ -22,6 +23,7 @@
     def __init__(self, space, array_size):
         pass
 
+    @jit.dont_look_inside
     def _get_fieldptr(self, space, w_obj, offset):
         rawobject = get_rawobject(space, w_obj)
         return lltype.direct_ptradd(rawobject, offset)



More information about the Pypy-commit mailing list