[pypy-commit] pypy ppc-jit-backend: forgot to add these lines

hager noreply at buildbot.pypy.org
Fri Feb 10 16:32:08 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r52359:0bd4401f7c46
Date: 2012-02-10 16:31 +0100
http://bitbucket.org/pypy/pypy/changeset/0bd4401f7c46/

Log:	forgot to add these lines

diff --git a/pypy/jit/backend/ppc/ppc_assembler.py b/pypy/jit/backend/ppc/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppc_assembler.py
@@ -477,7 +477,13 @@
         self.current_clt.frame_depth = max(self.current_clt.frame_depth,
                 spilling_area)
         self.current_clt.param_depth = max(self.current_clt.param_depth, param_depth)
-	self._patch_sp_offset(sp_patch_location, rawstart)
+
+        if not we_are_translated():
+            # for the benefit of tests
+            faildescr._ppc_bridge_frame_depth = self.current_clt.frame_depth
+            faildescr._ppc_bridge_param_depth = self.current_clt.param_depth
+
+        self._patch_sp_offset(sp_patch_location, rawstart)
         if not we_are_translated():
             print 'Loop', inputargs, operations
             self.mc._dump_trace(rawstart, 'bridge_%s.asm' % self.cpu.total_compiled_loops)


More information about the pypy-commit mailing list