Commits

David Schneider committed 49ddd42

replace uses of TempBox with TempXXX which contain type information

  • Participants
  • Parent commits 513b86c
  • Branches arm-backed-float

Comments (0)

Files changed (1)

File pypy/jit/backend/arm/regalloc.py

         box = None
         loc = None
         if isinstance(thing, Const):
-            if isinstance(thing, ConstInt):
-                box = TempInt()
-            elif isinstance(thing, ConstPtr):
+            if isinstance(thing, ConstPtr):
                 box = TempPtr()
             elif isinstance(thing, ConstFloat):
                 box = TempFloat()
             else:
-                box = TempBox()
+                box = TempInt()
             loc = self.force_allocate_reg(box,
                             forbidden_vars=forbidden_vars)
             if isinstance(thing, ConstFloat):
         arg0 = ConstInt(rffi.cast(lltype.Signed, op.getarg(0).getint()))
         loc, box = self._ensure_value_is_boxed(arg0)
         boxes.append(box)
-        box = TempBox()
+        box = TempInt()
         loc1 = self.force_allocate_reg(box, boxes)
         boxes.append(box)
         if op.result in self.longevity:
         x, x_box = self._ensure_value_is_boxed(boxes[0], boxes)
         boxes.append(x_box)
 
-        t = TempBox()
+        t = TempInt()
         y = self.force_allocate_reg(t, boxes)
         boxes.append(t)
         y_val = rffi.cast(lltype.Signed, op.getarg(1).getint())
         arglocs = []
         for i in range(len(args)):
             arg = args[i]
-            t = TempBox()
+            t = TempInt()
             l = self.force_allocate_reg(t, selected_reg=r.all_regs[i])
             self.assembler.load(l, imm(arg))
             arglocs.append(t)