[pypy-svn] r78622 - pypy/branch/jit-unroll-loops/pypy/jit/backend/x86
arigo at codespeak.net
arigo at codespeak.net
Sun Oct 31 15:56:43 CET 2010
Author: arigo
Date: Sun Oct 31 15:56:42 2010
New Revision: 78622
Modified:
pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/jump.py
Log:
Add an assert that complains explicitly.
Modified: pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/jump.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/jump.py (original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/backend/x86/jump.py Sun Oct 31 15:56:42 2010
@@ -7,7 +7,9 @@
srccount = {} # maps dst_locations to how many times the same
# location appears in src_locations
for dst in dst_locations:
- srccount[dst._getregkey()] = 0
+ key = dst._getregkey()
+ assert key not in srccount, "duplicate value in dst_locations!"
+ srccount[key] = 0
for i in range(len(dst_locations)):
src = src_locations[i]
if isinstance(src, ImmedLoc):
More information about the Pypy-commit
mailing list