[pypy-svn] r66652 - in pypy/branch/pyjitpl5/pypy/rpython: . ootypesystem

arigo at codespeak.net arigo at codespeak.net
Mon Jul 27 15:41:08 CEST 2009


Author: arigo
Date: Mon Jul 27 15:41:08 2009
New Revision: 66652

Modified:
   pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/ootype.py
   pypy/branch/pyjitpl5/pypy/rpython/rlist.py
Log:
Add a few _annenforceargs_, to fix jit/backend/cli/test_zrpy_vlist.
That's all a bit annoying; maybe we should at some point find a
better way to approach the issue of SomeInteger(nonneg=True) vs
SomeInteger(nonneg=False).


Modified: pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/ootype.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/ootype.py	(original)
+++ pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/ootype.py	Mon Jul 27 15:41:08 2009
@@ -561,6 +561,7 @@
     def ll_newlist(self, length):
         from pypy.rpython.ootypesystem import rlist
         return rlist.ll_newlist(self, length)
+    ll_newlist._annenforceargs_ = (None, int)
 
     # NB: We are expecting Lists of the same ITEMTYPE to compare/hash
     # equal. We don't redefine __eq__/__hash__ since the implementations
@@ -690,6 +691,7 @@
     def ll_newlist(self, length):
         from pypy.rpython.ootypesystem import rlist
         return rlist.ll_newarray(self, length)
+    ll_newlist._annenforceargs_ = (None, int)
 
     def ll_convert_from_array(self, array):
         return array

Modified: pypy/branch/pyjitpl5/pypy/rpython/rlist.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/rpython/rlist.py	(original)
+++ pypy/branch/pyjitpl5/pypy/rpython/rlist.py	Mon Jul 27 15:41:08 2009
@@ -858,6 +858,7 @@
         i += 1
         j += 1
     return l
+ll_listslice_startonly._annenforceargs_ = (None, None, int)
 
 def ll_listslice_startstop(RESLIST, l1, start, stop):
     length = l1.ll_length()



More information about the Pypy-commit mailing list