Commits

David Schneider  committed 5faa7e2

unify interface of get_scratch_reg

  • Participants
  • Parent commits 411a4ca

Comments (0)

Files changed (2)

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

                             forbidden_vars=self.temp_boxes + forbidden_vars)
         return loc
 
-    def get_scratch_reg(self, type=FLOAT, forbidden_vars=[],
-                                                        selected_reg=None):
+    def get_scratch_reg(self, type=FLOAT, forbidden_vars=[], selected_reg=None):
         assert type == FLOAT  # for now
         box = TempFloat()
         self.temp_boxes.append(box)

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

         """
         raise NotImplementedError("Abstract")
 
-    def get_scratch_reg(self, forbidden_vars=[]):
+    def get_scratch_reg(self, type, forbidden_vars=[], selected_reg=None):
         """ Platform specific - Allocates a temporary register """
         raise NotImplementedError("Abstract")