[pypy-svn] r70764 - pypy/branch/direct-assembler-call/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Fri Jan 22 01:25:18 CET 2010


Author: fijal
Date: Fri Jan 22 01:25:17 2010
New Revision: 70764

Modified:
   pypy/branch/direct-assembler-call/pypy/jit/backend/x86/regalloc.py
Log:
Seems that we're a bit out of luck in places :( I cannot possible imagine how
the virtualizable might not already be on the stack, however, if this is true
this will crash something. Since I have no clue, I can't test it a bit,
maybe deeper thinking is required.


Modified: pypy/branch/direct-assembler-call/pypy/jit/backend/x86/regalloc.py
==============================================================================
--- pypy/branch/direct-assembler-call/pypy/jit/backend/x86/regalloc.py	(original)
+++ pypy/branch/direct-assembler-call/pypy/jit/backend/x86/regalloc.py	Fri Jan 22 01:25:17 2010
@@ -645,6 +645,7 @@
         size = portal_calldescr.get_result_size(self.translate_support_code)
         vable_index = self.assembler.cpu.index_of_virtualizable
         if vable_index != -1:
+            self.rm._sync_var(op.args[vable_index])
             vable = self.fm.loc(op.args[vable_index], 1)
         else:
             vable = imm(0)



More information about the Pypy-commit mailing list