Author: Armin Rigo <[email protected]>
Branch:
Changeset: r87074:b2836ccb22d8
Date: 2016-09-13 16:18 +0200
http://bitbucket.org/pypy/pypy/changeset/b2836ccb22d8/
Log: Write a note
diff --git a/rpython/jit/metainterp/optimizeopt/rewrite.py
b/rpython/jit/metainterp/optimizeopt/rewrite.py
--- a/rpython/jit/metainterp/optimizeopt/rewrite.py
+++ b/rpython/jit/metainterp/optimizeopt/rewrite.py
@@ -332,6 +332,9 @@
expected_class = llmemory.cast_adr_to_ptr(
llmemory.cast_int_to_adr(vtable2),
rclass.CLASSTYPE)
+ # note: the test is for a range including 'max', but 'max'
+ # should never be used for actual classes. Including it makes
+ # it easier to pass artificial tests.
if (expected_class.subclassrange_min
<= known_class.subclassrange_min
<= expected_class.subclassrange_max):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit