Commits

Maciej Fijalkowski committed ddf5449

oops

  • Participants
  • Parent commits 4ba9c56
  • Branches jitframe-on-heap

Comments (0)

Files changed (1)

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

             gcmap = self._regalloc.get_gcmap([eax], noregs=noregs)
             self.push_gcmap(self.mc, gcmap, store=True)
         self.mc.CALL(x)
+        if callconv != FFI_DEFAULT_ABI:
+            self._fix_stdcall(callconv, p - align * WORD)
+        elif align:
+            self.mc.ADD_ri(esp.value, align * WORD)
         if can_collect:
             self._reload_frame_if_necessary(self.mc, can_collect=can_collect)
             if align and can_collect == 1:
                 self.mc.MOV_bi(ofs, 0)
             self.pop_gcmap(self.mc)
         #
-        if callconv != FFI_DEFAULT_ABI:
-            self._fix_stdcall(callconv, p - align * WORD)
-        elif align:
-            self.mc.ADD_ri(esp.value, align * WORD)
 
     def _fix_stdcall(self, callconv, p):
         from rpython.rlib.clibffi import FFI_STDCALL