[pypy-svn] r75797 - pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86
jcreigh at codespeak.net
jcreigh at codespeak.net
Fri Jul 2 22:31:51 CEST 2010
Author: jcreigh
Date: Fri Jul 2 22:31:50 2010
New Revision: 75797
Modified:
pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py
Log:
assert that inputargs are unique
Modified: pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py (original)
+++ pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/assembler.py Fri Jul 2 22:31:50 2010
@@ -253,6 +253,10 @@
_x86_param_depth
_x86_arglocs
"""
+ if not we_are_translated():
+ # Arguments should be unique
+ assert len(dict.fromkeys(inputargs)) == len(inputargs)
+
funcname = self._find_debug_merge_point(operations)
self.make_sure_mc_exists()
@@ -284,6 +288,10 @@
self.write_pending_failure_recoveries()
def assemble_bridge(self, faildescr, inputargs, operations):
+ if not we_are_translated():
+ # Arguments should be unique
+ assert len(dict.fromkeys(inputargs)) == len(inputargs)
+
funcname = self._find_debug_merge_point(operations)
self.make_sure_mc_exists()
More information about the Pypy-commit
mailing list