[pypy-svn] r63655 - in pypy/branch/pyjitpl5-simplify/pypy/rpython: . lltypesystem

fijal at codespeak.net fijal at codespeak.net
Sun Apr 5 04:16:44 CEST 2009


Author: fijal
Date: Sun Apr  5 04:16:44 2009
New Revision: 63655

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rdict.py
   pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rstr.py
   pypy/branch/pyjitpl5-simplify/pypy/rpython/rlist.py
Log:
oopspecs here and there


Modified: pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rdict.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rdict.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rdict.py	Sun Apr  5 04:16:44 2009
@@ -658,6 +658,7 @@
     iter.dict = d
     iter.index = 0
     return iter
+ll_dictiter.oopspec = 'newdictiter(d)'
 
 def ll_dictnext(iter, func, RETURNTYPE):
     dict = iter.dict
@@ -685,6 +686,7 @@
         # clear the reference to the dict and prevent restarts
         iter.dict = lltype.nullptr(lltype.typeOf(iter).TO.dict.TO)
     raise StopIteration
+ll_dictnext.oopspec = 'dictiter.dictnext(iter, func)'
 
 # _____________________________________________________________
 # methods
@@ -787,6 +789,7 @@
             p += 1
         i += 1
     return res
+ll_kvi.oopspec = 'newdictkvi(dic, func)'
 
 def ll_contains(d, key):
     i = ll_dict_lookup(d, key, d.keyhash(key))

Modified: pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rstr.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/rpython/lltypesystem/rstr.py	Sun Apr  5 04:16:44 2009
@@ -847,6 +847,7 @@
 # TODO: make the public interface of the rstr module cleaner
 ll_strconcat = LLHelpers.ll_strconcat
 ll_join = LLHelpers.ll_join
+ll_str2unicode = LLHelpers.ll_str2unicode
 do_stringformat = LLHelpers.do_stringformat
 
 string_repr = StringRepr()

Modified: pypy/branch/pyjitpl5-simplify/pypy/rpython/rlist.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/rpython/rlist.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/rpython/rlist.py	Sun Apr  5 04:16:44 2009
@@ -920,6 +920,7 @@
             l.ll_setitem_fast(j, null)
             j -= 1
     l._ll_resize_le(newlength)
+ll_listdelslice_startstop.oopspec = 'list.delslice_startstop(l, start, stop)'
 
 def ll_listsetslice(l1, start, stop, l2):
     count = l2.ll_length()
@@ -934,6 +935,7 @@
         l1.ll_setitem_fast(j, l2.ll_getitem_fast(i))
         i += 1
         j += 1
+ll_listsetslice.oopspec = 'list.setslice(l1, start, stop, l2)'
 
 # ____________________________________________________________
 #



More information about the Pypy-commit mailing list