Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r46441:a171edca6ada
Date: 2011-08-11 22:40 +0200
http://bitbucket.org/pypy/pypy/changeset/a171edca6ada/

Log:    Add an assert that (at least) has some chances to fail if the C
        backend identifies several functions with each other just because
        they have the same assembler code.

diff --git a/pypy/jit/metainterp/pyjitpl.py b/pypy/jit/metainterp/pyjitpl.py
--- a/pypy/jit/metainterp/pyjitpl.py
+++ b/pypy/jit/metainterp/pyjitpl.py
@@ -1429,6 +1429,7 @@
                 # can change from run to run.
                 d = {}
                 for jitcode in self.indirectcalltargets:
+                    assert jitcode.fnaddr not in d
                     d[jitcode.fnaddr] = jitcode
                 self.globaldata.indirectcall_dict = d
             return d.get(fnaddress, None)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to