Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r67858:ab54e581fc29
Date: 2013-11-05 10:59 -0800
http://bitbucket.org/pypy/pypy/changeset/ab54e581fc29/
Log: translation fix
diff --git a/rpython/rtyper/lltypesystem/rstr.py
b/rpython/rtyper/lltypesystem/rstr.py
--- a/rpython/rtyper/lltypesystem/rstr.py
+++ b/rpython/rtyper/lltypesystem/rstr.py
@@ -106,7 +106,7 @@
copy_string_to_raw._always_inline_ = True
copy_string_to_raw = func_with_new_name(copy_string_to_raw,
'copy_%s_to_raw' % name)
- @jit.oopspec('stroruni.copy_raw_to_string(ptrsrc, dst, dststart, length)')
+ @jit.dont_look_inside
def copy_raw_to_string(ptrsrc, dst, dststart, length):
# xxx Warning: same note as above apply: don't do this at home
assert length >= 0
@@ -118,6 +118,9 @@
llmemory.raw_memcopy(srcbuf, dst, llmemory.sizeof(CHAR_TP) * length)
# end of "no GC" section
keepalive_until_here(dst)
+ copy_raw_to_string._always_inline_ = True
+ copy_raw_to_string = func_with_new_name(copy_raw_to_string,
+ 'copy_raw_to_%s' % name)
return copy_string_to_raw, copy_raw_to_string, copy_string_contents
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit