[pypy-commit] pypy reflex-support: add a promote and a test for it

cfbolz noreply at buildbot.pypy.org
Thu Jul 14 15:06:35 CEST 2011


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: reflex-support
Changeset: r45590:ce41ead106ca
Date: 2011-07-14 15:05 +0200
http://bitbucket.org/pypy/pypy/changeset/ce41ead106ca/

Log:	add a promote and a test for it

diff --git a/pypy/module/cppyy/interp_cppyy.py b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -260,6 +260,7 @@
 
         space = self.space
         errmsg = 'None of the overloads matched:'
+        jit.promote(self)
         for i in range(len(self.functions)):
             cppyyfunc = self.functions[i]
             try:
diff --git a/pypy/module/cppyy/test/test_zjit.py b/pypy/module/cppyy/test/test_zjit.py
--- a/pypy/module/cppyy/test/test_zjit.py
+++ b/pypy/module/cppyy/test/test_zjit.py
@@ -125,3 +125,4 @@
         space = FakeSpace()
         result = self.meta_interp(f, [], listops=True, backendopt=True, listcomp=True)
         self.check_loops(call=0, call_release_gil=1)
+        self.check_loops(getarrayitem_gc_pure=0, everywhere=True)


More information about the pypy-commit mailing list