Author: Lukas Diekmann <[email protected]>
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)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to