Author: Maciej Fijalkowski <fij...@gmail.com> Branch: string-promote-2 Changeset: r47935:1cd384c6c5e7 Date: 2011-10-11 12:11 +0200 http://bitbucket.org/pypy/pypy/changeset/1cd384c6c5e7/
Log: try using string_promote for promoting lookups diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py --- a/pypy/objspace/std/typeobject.py +++ b/pypy/objspace/std/typeobject.py @@ -10,7 +10,8 @@ from pypy.objspace.std import identitydict from pypy.rlib.objectmodel import we_are_translated from pypy.rlib.objectmodel import current_object_addr_as_int, compute_hash -from pypy.rlib.jit import promote, elidable_promote, we_are_jitted +from pypy.rlib.jit import promote, elidable_promote, we_are_jitted,\ + promote_string from pypy.rlib.jit import elidable, dont_look_inside, unroll_safe from pypy.rlib.rarithmetic import intmask, r_uint @@ -399,6 +400,7 @@ if version_tag is None: tup = w_self._lookup_where(name) return tup + name = promote_string(name) w_class, w_value = w_self._pure_lookup_where_with_method_cache(name, version_tag) return w_class, unwrap_cell(space, w_value) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit