[pypy-svn] r61730 - pypy/branch/pyjitpl5/pypy/rpython/lltypesystem

arigo at codespeak.net arigo at codespeak.net
Wed Feb 11 14:44:34 CET 2009


Author: arigo
Date: Wed Feb 11 14:44:33 2009
New Revision: 61730

Modified:
   pypy/branch/pyjitpl5/pypy/rpython/lltypesystem/ll_str.py
Log:
(fijal, arigo)
Port from the oo-jit branch.


Modified: pypy/branch/pyjitpl5/pypy/rpython/lltypesystem/ll_str.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/rpython/lltypesystem/ll_str.py	(original)
+++ pypy/branch/pyjitpl5/pypy/rpython/lltypesystem/ll_str.py	Wed Feb 11 14:44:33 2009
@@ -1,11 +1,11 @@
 from pypy.rpython.lltypesystem.lltype import GcArray, Array, Char, malloc
-from pypy.rpython.annlowlevel import llstr
 from pypy.rlib.rarithmetic import r_uint, formatd
 
 CHAR_ARRAY = GcArray(Char)
 
 def ll_int_str(repr, i):
     return ll_int2dec(i)
+ll_int_str._pure_function_ = True
 
 def ll_int2dec(i):
     from pypy.rpython.lltypesystem.rstr import mallocstr
@@ -37,6 +37,7 @@
         result.chars[j] = temp[len-j-1]
         j += 1
     return result
+ll_int2dec._pure_function_ = True
 
 hex_chars = malloc(Array(Char), 16, immortal=True)
 
@@ -78,6 +79,7 @@
         result.chars[j] = temp[len-j-1]
         j += 1
     return result
+ll_int2hex._pure_function_ = True
 
 def ll_int2oct(i, addPrefix):
     from pypy.rpython.lltypesystem.rstr import mallocstr
@@ -114,7 +116,8 @@
         result.chars[j] = temp[len-j-1]
         j += 1
     return result
+ll_int2oct._pure_function_ = True
 
 def ll_float_str(repr, f):
-    return llstr(formatd("%f", f))
-
+    return formatd("%f", f)
+ll_float_str._pure_function_ = True



More information about the Pypy-commit mailing list