[prev in list] [next in list] [prev in thread] [next in thread]
List: pypy-svn
Subject: [pypy-svn] r78622 -
From: arigo () codespeak ! net
Date: 2010-10-31 14:56:43
Message-ID: 20101031145643.9B57236E35D () codespeak ! net
[Download RAW message or body]
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):
_______________________________________________
pypy-svn mailing list
pypy-svn@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic