[pypy-commit] pypy detect-immutable-fields: Removed some nonsense isvirtual calls

alex_gaynor noreply at buildbot.pypy.org
Thu Jan 23 23:47:37 CET 2014


Author: Alex Gaynor <alex.gaynor at 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)
 


More information about the pypy-commit mailing list