[pypy-commit] pypy default: These functions are elidable

arigo pypy.commits at gmail.com
Fri Feb 15 06:48:55 EST 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r96017:f535756918e0
Date: 2019-02-12 11:39 +0100
http://bitbucket.org/pypy/pypy/changeset/f535756918e0/

Log:	These functions are elidable

diff --git a/rpython/rlib/rutf8.py b/rpython/rlib/rutf8.py
--- a/rpython/rlib/rutf8.py
+++ b/rpython/rlib/rutf8.py
@@ -518,7 +518,7 @@
         break
     return storage
 
- at jit.dont_look_inside
+ at jit.elidable
 def codepoint_position_at_index(utf8, storage, index):
     """ Return byte index of a character inside utf8 encoded string, given
     storage of type UTF8_INDEX_STORAGE.  The index must be smaller than
@@ -546,7 +546,7 @@
         pos = next_codepoint_pos(utf8, pos)
     return pos
 
- at jit.dont_look_inside
+ at jit.elidable
 def codepoint_at_index(utf8, storage, index):
     """ Return codepoint of a character inside utf8 encoded string, given
     storage of type UTF8_INDEX_STORAGE
@@ -564,7 +564,7 @@
         bytepos = next_codepoint_pos(utf8, bytepos)
     return codepoint_at_pos(utf8, bytepos)
 
- at jit.dont_look_inside
+ at jit.elidable
 def codepoint_index_at_byte_position(utf8, storage, bytepos):
     """ Return the character index for which
     codepoint_position_at_index(index) == bytepos.


More information about the pypy-commit mailing list