[pypy-commit] pypy default: restore these checks which got deleted

alex_gaynor noreply at buildbot.pypy.org
Fri Jan 25 02:07:15 CET 2013


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r60439:cc89614c9009
Date: 2013-01-24 19:07 -0600
http://bitbucket.org/pypy/pypy/changeset/cc89614c9009/

Log:	restore these checks which got deleted

diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -484,8 +484,11 @@
             self.autoreds = True
             self.reds = []
             self.numreds = None # see warmspot.autodetect_jit_markers_redvars
-            assert confirm_enter_jit is None, (
-                "reds='auto' is not compatible with confirm_enter_jit")
+            for hook in [
+                get_jitcell_at, set_jitcell_at, get_printable_location,
+                confirm_enter_jit
+            ]:
+                assert hook is None, "reds='auto' is not compatible with JitDriver hooks"
         else:
             if reds is not None:
                 self.reds = reds


More information about the pypy-commit mailing list