Commits

Maciej Fijalkowski committed 0805c40

maaaaaybe?

  • Participants
  • Parent commits 84877fe
  • Branches jitframe-on-heap

Comments (0)

Files changed (2)

File pypy/jit/backend/x86/assembler.py

         if withfloats:
             # Push all XMM regs
             ofs = len(gpr_reg_mgr_cls.all_regs)
-            for i in range(self.cpu.NUM_REGS):
+            for i in range(len(xmm_reg_mgr_cls.all_regs)):
                 mc.MOVSD_bx((ofs + i) * WORD, i)
 
     def _pop_all_regs_from_frame(self, mc, withfloats):
         if withfloats:
             # Pop all XMM regs
             ofs = len(gpr_reg_mgr_cls.all_regs)
-            for i in range(self.cpu.NUM_REGS):
+            for i in range(len(xmm_reg_mgr_cls.all_regs)):
                 mc.MOVSD_xb(i, (ofs + i) * WORD)
 
     def _build_failure_recovery(self, exc, withfloats=False):

File pypy/jit/backend/x86/test/test_gc_integration.py

 
 CPU = getcpuclass()
 
-class MockGcRootMap(object):
-    is_shadow_stack = False
-    def get_basic_shape(self):
-        return ['shape']
-    def add_frame_offset(self, shape, offset):
-        shape.append(offset)
-    def add_callee_save_reg(self, shape, reg_index):
-        index_to_name = { 1: 'ebx', 2: 'esi', 3: 'edi' }
-        shape.append(index_to_name[reg_index])
-    def compress_callshape(self, shape, datablockwrapper):
-        assert datablockwrapper == 'fakedatablockwrapper'
-        assert shape[0] == 'shape'
-        return ['compressed'] + shape[1:]
-
-class MockGcDescr(GcLLDescr_boehm):
-    gcrootmap = MockGcRootMap()
-
-class TestDirectGcIntegration(object):
-    def test_gcmap(self):
-        pass
-
 class TestRegallocGcIntegration(BaseTestRegalloc):
     
     cpu = CPU(None, None)