Author: fijal
Branch: vmprof-newstack
Changeset: r81913:9fcd011d9607
Date: 2016-01-22 14:28 +0100
http://bitbucket.org/pypy/pypy/changeset/9fcd011d9607/

Log:    we can have is_recursive but no get_unique_id

diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -623,8 +623,8 @@
             raise AttributeError("no 'greens' or 'reds' supplied")
         if virtualizables is not None:
             self.virtualizables = virtualizables
-        if get_unique_id is not None or is_recursive:
-            assert get_unique_id is not None and is_recursive, "get_unique_id 
and is_recursive must be specified at the same time"
+        if get_unique_id is not None:
+            assert is_recursive, "get_unique_id and is_recursive must be 
specified at the same time"
         for v in self.virtualizables:
             assert v in self.reds
         # if reds are automatic, they won't be passed to jit_merge_point, so
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to