[pypy-svn] r28378 - pypy/dist/pypy/rpython/ootypesystem

fijal at codespeak.net fijal at codespeak.net
Tue Jun 6 15:42:16 CEST 2006


Author: fijal
Date: Tue Jun  6 15:42:14 2006
New Revision: 28378

Modified:
   pypy/dist/pypy/rpython/ootypesystem/ll_str.py
   pypy/dist/pypy/rpython/ootypesystem/rstr.py
Log:
Added possible suggested_primitive optimizations


Modified: pypy/dist/pypy/rpython/ootypesystem/ll_str.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/ll_str.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/ll_str.py	Tue Jun  6 15:42:14 2006
@@ -5,6 +5,7 @@
 
 def ll_int_str(repr, i):
     return ll_int2dec(i)
+ll_int_str.suggested_primitive = True
 
 def ll_int2dec(i):
     return oostring(i, const(10))

Modified: pypy/dist/pypy/rpython/ootypesystem/rstr.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rstr.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/rstr.py	Tue Jun  6 15:42:14 2006
@@ -152,6 +152,7 @@
 
     def ll_int(s, base):
         return ootype.ooparse_int(s, base)
+    ll_int.suggested_primitive = True
 
     def do_stringformat(cls, hop, sourcevarsrepr):
         InstanceRepr = hop.rtyper.type_system.rclass.InstanceRepr



More information about the Pypy-commit mailing list