Author: Alex Gaynor <alex.gay...@gmail.com> Branch: detect-immutable-fields Changeset: r68895:a24d7051b582 Date: 2014-01-23 16:47 -0600 http://bitbucket.org/pypy/pypy/changeset/a24d7051b582/
Log: Removed some nonsense isvirtual calls diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py --- a/pypy/objspace/std/mapdict.py +++ b/pypy/objspace/std/mapdict.py @@ -468,7 +468,7 @@ def _mapdict_read_storage(self, index, pure=False): assert index >= 0 - if pure and jit.isconstant(index) and (jit.isconstant(self) or jit.isvirtual(self)): + if pure and jit.isconstant(index) and jit.isconstant(self): return self._pure_mapdict_read_storage(index) return self.storage[index] @@ -545,7 +545,7 @@ def _mapdict_read_storage(self, index, pure=False): assert index >= 0 - if pure and jit.isconstant(index) and (jit.isconstant(self) or jit.isvirtual(self)): + if pure and jit.isconstant(index) and jit.isconstant(self): return self._pure_mapdict_read_storage(index) return self._indirection_mapdict_read_storage(index) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit