Author: Armin Rigo <ar...@tunes.org>
Branch: py3k
Changeset: r86946:1fc97c413001
Date: 2016-09-07 19:38 +0200
http://bitbucket.org/pypy/pypy/changeset/1fc97c413001/

Log:    For now, we should get most of the intended effect with
        @jit.elidable

diff --git a/pypy/objspace/std/unicodeobject.py 
b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -7,6 +7,7 @@
 from rpython.rlib.runicode import (
     make_unicode_escape_function, str_decode_ascii, str_decode_utf_8,
     unicode_encode_ascii, unicode_encode_utf_8, fast_str_decode_ascii)
+from rpython.rlib import jit
 
 from pypy.interpreter import unicodehelper
 from pypy.interpreter.baseobjspace import W_Root
@@ -76,6 +77,7 @@
     def unicode_w(self, space):
         return self._value
 
+    @jit.elidable
     def identifier_w(self, space):
         identifier = self._utf8
         if identifier is not None:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to