[pypy-commit] pypy dict-strategies: also promote self (strategy)

l.diekmann noreply at buildbot.pypy.org
Wed Jun 29 15:42:00 CEST 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: dict-strategies
Changeset: r45182:8b4e4c207846
Date: 2011-06-29 15:48 +0200
http://bitbucket.org/pypy/pypy/changeset/8b4e4c207846/

Log:	also promote self (strategy)

diff --git a/pypy/objspace/std/celldict.py b/pypy/objspace/std/celldict.py
--- a/pypy/objspace/std/celldict.py
+++ b/pypy/objspace/std/celldict.py
@@ -37,6 +37,7 @@
             # when we are jitting, we always go through the pure function
             # below, to ensure that we have no residual dict lookup
             w_dict = jit.hint(w_dict, promote=True)
+            self = jit.hint(self, promote=True)
             return self._getcell_makenew(w_dict, key)
         return self.unerase(w_dict.dstorage).get(key, None)
 


More information about the pypy-commit mailing list