Commits

Carl Friedrich Bolz committed 25523b8

make quasi-immutable fields actually useful here

Comments (0)

Files changed (1)

pypy/objspace/std/celldict.py

        self.version = VersionTag()
 
     def getdictvalue_no_unwrapping(self, w_dict, key):
+        # NB: it's important to promote self here, so that self.version is a
+        # no-op due to the quasi-immutable field
+        self = jit.promote(self)
         return self._getdictvalue_no_unwrapping_pure(self.version, w_dict, key)
 
     @jit.elidable_promote('0,1,2')