[pypy-svn] r65071 - in pypy/branch/pyjitpl5/pypy: jit/metainterp rpython/ootypesystem

antocuni at codespeak.net antocuni at codespeak.net
Tue May 5 21:57:42 CEST 2009


Author: antocuni
Date: Tue May  5 21:57:42 2009
New Revision: 65071

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/support.py
   pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/ootype.py
Log:
implement oostring of strings and unicode


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/support.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/support.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/support.py	Tue May  5 21:57:42 2009
@@ -241,12 +241,18 @@
     def _ll_1_oostring_char_foldable(ch):
         return ootype.oostring(ch, -1)
 
+    def _ll_1_oostring_string_foldable(s):
+        return ootype.oostring(s, -1)
+
     def _ll_2_oounicode_signed_foldable(n, base):
         return ootype.oounicode(n, base)
 
     def _ll_1_oounicode_unichar_foldable(ch):
         return ootype.oounicode(ch, -1)
 
+    def _ll_1_oounicode_string_foldable(s):
+        return ootype.oounicode(s, -1)
+
     def _ll_1_oohash_string_foldable(s):
         return ootype.oohash(s)
 

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	Tue May  5 21:57:42 2009
@@ -439,6 +439,7 @@
 class String(AbstractString):
     SELFTYPE_T = object()
     CHAR = Char
+    _name = 'String'
 
     # TODO: should it return _null or ''?
     def _defl(self):
@@ -457,6 +458,7 @@
 class Unicode(AbstractString):
     SELFTYPE_T = object()
     CHAR = UniChar
+    _name = 'Unicode'
 
     # TODO: should it return _null or ''?
     def _defl(self):



More information about the Pypy-commit mailing list