[pypy-commit] pypy ppc-jit-backend: Allow to add an offset of 0 when using shadow stack, as long as the offset is aligned

bivab noreply at buildbot.pypy.org
Tue Feb 21 11:06:08 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: ppc-jit-backend
Changeset: r52715:cbc1e5945396
Date: 2012-02-21 01:38 -0800
http://bitbucket.org/pypy/pypy/changeset/cbc1e5945396/

Log:	Allow to add an offset of 0 when using shadow stack, as long as the
	offset is aligned

diff --git a/pypy/jit/backend/llsupport/gc.py b/pypy/jit/backend/llsupport/gc.py
--- a/pypy/jit/backend/llsupport/gc.py
+++ b/pypy/jit/backend/llsupport/gc.py
@@ -523,7 +523,7 @@
         return []
 
     def add_frame_offset(self, shape, offset):
-        assert offset != 0
+        assert offset & 3 == 0
         shape.append(offset)
 
     def add_callee_save_reg(self, shape, register):


More information about the pypy-commit mailing list