Author: Armin Rigo <ar...@tunes.org>
Branch: cffi-1.0
Changeset: r77237:551a9e744bfa
Date: 2015-05-08 21:26 +0200
http://bitbucket.org/pypy/pypy/changeset/551a9e744bfa/

Log:    More dont_look_inside to avoid confusing the JIT

diff --git a/pypy/module/_cffi_backend/ffi_obj.py 
b/pypy/module/_cffi_backend/ffi_obj.py
--- a/pypy/module/_cffi_backend/ffi_obj.py
+++ b/pypy/module/_cffi_backend/ffi_obj.py
@@ -34,6 +34,7 @@
 
 class W_FFIObject(W_Root):
 
+    @jit.dont_look_inside
     def __init__(self, space, src_ctx):
         self.space = space
         self.types_dict = {}
@@ -350,6 +351,7 @@
         return self.ffi_type(w_arg, ACCEPT_STRING | ACCEPT_CDATA)
 
 
+@jit.dont_look_inside
 def W_FFIObject___new__(space, w_subtype, __args__):
     r = space.allocate_instance(W_FFIObject, w_subtype)
     # get in 'src_ctx' a NULL which transaction doesn't consider a constant
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to