Author: fijal Branch: unicode-utf8 Changeset: r93285:0e829cf58e7b Date: 2017-12-06 15:20 +0200 http://bitbucket.org/pypy/pypy/changeset/0e829cf58e7b/
Log: change always_inline to try_inline diff --git a/rpython/rlib/rutf8.py b/rpython/rlib/rutf8.py --- a/rpython/rlib/rutf8.py +++ b/rpython/rlib/rutf8.py @@ -17,7 +17,7 @@ import sys from rpython.rlib.objectmodel import enforceargs, we_are_translated, specialize -from rpython.rlib.objectmodel import always_inline, dont_inline +from rpython.rlib.objectmodel import always_inline, dont_inline, try_inline from rpython.rlib.rstring import StringBuilder from rpython.rlib import jit from rpython.rlib.signature import signature @@ -50,7 +50,7 @@ chr((0x80 | (code & 0x3f)))) raise ValueError -@always_inline +@try_inline def unichr_as_utf8_append(builder, code, allow_surrogates=False): """Encode code (numeric value) as utf8 encoded string and emit the result into the given StringBuilder. @@ -737,7 +737,7 @@ self._lgt += 1 self._s.append(s) - @always_inline + @try_inline def append_code(self, code): self._flag = combine_flags(self._flag, get_flag_from_code(code)) self._lgt += 1 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit