[pypy-svn] r36756 - pypy/dist/pypy/jit/codegen/ppc

mwh at codespeak.net mwh at codespeak.net
Sun Jan 14 18:53:41 CET 2007


Author: mwh
Date: Sun Jan 14 18:53:40 2007
New Revision: 36756

Modified:
   pypy/dist/pypy/jit/codegen/ppc/rgenop.py
Log:
fix test_tight_loop


Modified: pypy/dist/pypy/jit/codegen/ppc/rgenop.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/ppc/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/ppc/rgenop.py	Sun Jan 14 18:53:40 2007
@@ -167,7 +167,7 @@
         self.args_gv = args_gv
         #self.startaddr = startaddr
         #self.arg_locations = arg_locations
-        #self.min_stack_offset = min_stack_offset
+        self.min_stack_offset = 1
 
 # our approach to stack layout:
 
@@ -374,6 +374,9 @@
         self._close()
 
     def finish_and_goto(self, outputargs_gv, target):
+        if target.min_stack_offset == 1:
+            self.pause_writing(outputargs_gv)
+            self.start_writing()
         allocator = self.allocate(outputargs_gv)
         min_offset = min(allocator.spill_offset, target.min_stack_offset)
         allocator.spill_offset = prepare_for_jump(



More information about the Pypy-commit mailing list