[pypy-commit] pypy default: jit.dont_look_inside the rffi functions called with the "win" calling conv.

arigo noreply at buildbot.pypy.org
Thu Nov 10 11:45:47 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r49121:f6f7f134190a
Date: 2011-11-10 11:45 +0100
http://bitbucket.org/pypy/pypy/changeset/f6f7f134190a/

Log:	jit.dont_look_inside the rffi functions called with the "win"
	calling conv.

diff --git a/pypy/rpython/lltypesystem/rffi.py b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -245,8 +245,14 @@
     wrapper._always_inline_ = True
     # for debugging, stick ll func ptr to that
     wrapper._ptr = funcptr
+    wrapper = func_with_new_name(wrapper, name)
 
-    return func_with_new_name(wrapper, name)
+    if calling_conv != "c":
+        from pypy.rlib.jit import dont_look_inside
+        wrapper = dont_look_inside(wrapper)
+
+    return wrapper
+
 
 class CallbackHolder:
     def __init__(self):


More information about the pypy-commit mailing list