[pypy-commit] pypy speedup-list-comprehension: a bit more carefully bring back oopspecs

fijal noreply at buildbot.pypy.org
Sat Mar 10 03:07:59 CET 2012


Author: Maciej Fijalkowski <fijall at 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:


More information about the pypy-commit mailing list