Commits

Armin Rigo committed 6f0d0e5

Simplify the code here --- the case of setarrayitem_gc is handled
before, nowdays.

Comments (0)

Files changed (1)

rpython/jit/metainterp/heapcache.py

               opnum != rop.PTR_NE and
               opnum != rop.INSTANCE_PTR_EQ and
               opnum != rop.INSTANCE_PTR_NE):
-            idx = 0
             for box in argboxes:
-                # setarrayitem_gc don't escape its first argument
-                if not (idx == 0 and opnum in [rop.SETARRAYITEM_GC]):
-                    self._escape(box)
-                idx += 1
+                self._escape(box)
 
     def _escape(self, box):
         try: