[pypy-commit] pypy cffi-1.0: jit tweak

arigo noreply at buildbot.pypy.org
Thu May 7 16:02:24 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r77177:ea7459734900
Date: 2015-05-07 15:01 +0200
http://bitbucket.org/pypy/pypy/changeset/ea7459734900/

Log:	jit tweak

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
@@ -58,6 +58,7 @@
     def ffi_type(self, w_x, accept):
         space = self.space
         if (accept & ACCEPT_STRING) and space.isinstance_w(w_x, space.w_str):
+            self = jit.promote(self)
             return self.parse_string_to_type(space.str_w(w_x),
                                              accept & CONSIDER_FN_AS_FNPTR)
         if (accept & ACCEPT_CTYPE) and isinstance(w_x, W_CType):


More information about the pypy-commit mailing list