[pypy-commit] pypy py3k: For now, we should get most of the intended effect with @jit.elidable

arigo pypy.commits at gmail.com
Wed Sep 7 13:38:36 EDT 2016


Author: Armin Rigo <arigo at 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:


More information about the pypy-commit mailing list