[pypy-commit] pypy ppc-jit-backend: Fixed assertion that made multiple tests fail due to side effect

hager noreply at buildbot.pypy.org
Mon Nov 14 17:59:55 CET 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r49405:a1d07117b3f1
Date: 2011-11-14 17:59 +0100
http://bitbucket.org/pypy/pypy/changeset/a1d07117b3f1/

Log:	Fixed assertion that made multiple tests fail due to side effect

diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
@@ -451,7 +451,6 @@
                 operations, self.current_clt.allgcrefs)
         self.mc = PPCBuilder()
         self.pending_guards = []
-        assert self.datablockwrapper is None
         allblocks = self.get_asmmemmgr_blocks(looptoken)
         self.datablockwrapper = MachineDataBlockWrapper(self.cpu.asmmemmgr,
                                                         allblocks)
@@ -588,6 +587,7 @@
         self.current_clt = None
         self.mc = None
         self._regalloc = None
+        assert self.datablockwrapper is None
 
     def _walk_operations(self, operations, regalloc):
         self._regalloc = regalloc


More information about the pypy-commit mailing list