[pypy-svn] r71338 - pypy/branch/string-promote/pypy/objspace/std
fijal at codespeak.net
fijal at codespeak.net
Fri Feb 19 17:36:17 CET 2010
Author: fijal
Date: Fri Feb 19 17:36:15 2010
New Revision: 71338
Modified:
pypy/branch/string-promote/pypy/objspace/std/celldict.py
Log:
promote self here. This is a substitute for purefunction_promote on
_getcell_makenew
Modified: pypy/branch/string-promote/pypy/objspace/std/celldict.py
==============================================================================
--- pypy/branch/string-promote/pypy/objspace/std/celldict.py (original)
+++ pypy/branch/string-promote/pypy/objspace/std/celldict.py Fri Feb 19 17:36:15 2010
@@ -28,6 +28,7 @@
if makenew or jit.we_are_jitted():
# when we are jitting, we always go through the pure function
# below, to ensure that we have no residual dict lookup
+ self = jit.hint(self, promote=True)
return self._getcell_makenew(key)
return self.content.get(key, None)
More information about the Pypy-commit
mailing list