[pypy-svn] r78519 - pypy/branch/mapdict-without-jit/pypy/objspace/std
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Oct 30 13:43:27 CEST 2010
Author: cfbolz
Date: Sat Oct 30 13:43:26 2010
New Revision: 78519
Modified:
pypy/branch/mapdict-without-jit/pypy/objspace/std/mapdict.py
Log:
cannot use jit.purefunction here, because the argument is a tuple. hack
differently.
Modified: pypy/branch/mapdict-without-jit/pypy/objspace/std/mapdict.py
==============================================================================
--- pypy/branch/mapdict-without-jit/pypy/objspace/std/mapdict.py (original)
+++ pypy/branch/mapdict-without-jit/pypy/objspace/std/mapdict.py Sat Oct 30 13:43:26 2010
@@ -41,9 +41,9 @@
def delete(self, obj, selector):
return None
- @jit.purefunction
def index(self, selector):
- if self.space.config.objspace.std.withmethodcache:
+ if (self.space.config.objspace.std.withmethodcache and
+ not jit.we_are_jitted()):
return self._index_cache(selector)
else:
return self._index(selector)
More information about the Pypy-commit
mailing list