Author: Maciej Fijalkowski <fij...@gmail.com> Branch: speedup-list-comprehension Changeset: r53291:8d1b1d0320b6 Date: 2012-03-09 18:07 -0800 http://bitbucket.org/pypy/pypy/changeset/8d1b1d0320b6/
Log: a bit more carefully bring back oopspecs diff --git a/pypy/rpython/rlist.py b/pypy/rpython/rlist.py --- a/pypy/rpython/rlist.py +++ b/pypy/rpython/rlist.py @@ -618,6 +618,7 @@ res = l.ll_getitem_fast(index) ll_delitem_nonneg(dum_nocheck, l, index) return res +ll_pop_nonneg.oopspec = 'list.pop(l, index)' def ll_pop_default(func, l): length = l.ll_length() @@ -651,6 +652,7 @@ l.ll_setitem_fast(newlength, null) l._ll_resize_le(newlength) return res +ll_pop_zero.oopspec = 'list.pop(l, 0)' def ll_pop(func, l, index): length = l.ll_length() @@ -710,7 +712,7 @@ def ll_getitem_foldable_nonneg(l, index): ll_assert(index >= 0, "unexpectedly negative list getitem index") return l.ll_getitem_fast(index) -ll_getitem_foldable_nonneg._always_inline_ = True +ll_getitem_foldable_nonneg.oopspec = 'list.getitem_foldable(l, index)' def ll_getitem_foldable(l, index): if index < 0: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit