Commits

Anonymous committed 5e02bff

Added a few asserts to track down the segfault...

Comments (0)

Files changed (2)

     
     def _fetch(self, space, n0):
         strategy = jit.promote(self.strategy)
+        assert not strategy.fetch_needs_objspace() or space is not None
         return strategy.fetch(space, self, n0)
 
     def _store(self, space, n0, w_value):
         strategy = jit.promote(self.strategy)
+        assert not strategy.fetch_needs_objspace() or space is not None
         return strategy.store(space, self, n0, w_value)
 
     def basic_size(self):
 
     @make_elidable_after_versioning
     def getbytecode(self, pc):
+        assert pc >= 0 and pc < len(self.bytecode)
         return self.bytecode[pc]
 
 class CachedObjectShadow(AbstractCachingShadow):