Author: Alex Gaynor <[email protected]>
Branch: unroll-if-alt
Changeset: r47311:3d6fa69b3ca1
Date: 2011-09-16 17:50 -0400
http://bitbucket.org/pypy/pypy/changeset/3d6fa69b3ca1/
Log: work around for now.
diff --git a/pypy/module/struct/formatiterator.py
b/pypy/module/struct/formatiterator.py
--- a/pypy/module/struct/formatiterator.py
+++ b/pypy/module/struct/formatiterator.py
@@ -14,7 +14,10 @@
self.args_index = 0
self.result = [] # list of characters
- @jit.look_inside_iff(lambda self, fmtdesc, repetitions:
jit.isconstant(repetitions))
+ # This *should* be always unroll safe, the only way to get here is by
+ # unroll the interpret function, which means the fmt is const, and thus
+ # this should be const (in theory ;)
+ @jit.unroll_safe
@specialize.arg(1)
def operate(self, fmtdesc, repetitions):
if fmtdesc.needcount:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit