[pypy-svn] r67873 - pypy/branch/remove-plfbid/pypy/jit/backend/x86

pedronis at codespeak.net pedronis at codespeak.net
Fri Sep 25 10:23:55 CEST 2009


Author: pedronis
Date: Fri Sep 25 10:23:54 2009
New Revision: 67873

Modified:
   pypy/branch/remove-plfbid/pypy/jit/backend/x86/assembler.py
Log:
fix for test_ll_random

Modified: pypy/branch/remove-plfbid/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/remove-plfbid/pypy/jit/backend/x86/assembler.py	(original)
+++ pypy/branch/remove-plfbid/pypy/jit/backend/x86/assembler.py	Fri Sep 25 10:23:54 2009
@@ -172,9 +172,9 @@
             self._regalloc = None   # else keep it around for debugging
         stack_depth = regalloc.current_stack_depth
         jump_target = regalloc.jump_target
-        assert jump_target
-        target_stack_depth = jump_target.executable_token._x86_stack_depth
-        stack_depth = max(stack_depth, target_stack_depth)
+        if jump_target is not None:
+            target_stack_depth = jump_target.executable_token._x86_stack_depth
+            stack_depth = max(stack_depth, target_stack_depth)
         # patch stack adjustment LEA
         if not we_are_translated():
             # for the benefit of tests



More information about the Pypy-commit mailing list