1. Taavi Burns
  2. pypy

Commits

Maciej Fijalkowski  committed 8d1b1d0

a bit more carefully bring back oopspecs

  • Participants
  • Parent commits ded3dd3
  • Branches speedup-list-comprehension

Comments (0)

Files changed (1)

File pypy/rpython/rlist.py

View file
     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()
         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()
 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: