Author: Armin Rigo <[email protected]>
Branch: guard-compatible
Changeset: r83044:8d87ef9411ad
Date: 2016-03-14 18:25 +0100
http://bitbucket.org/pypy/pypy/changeset/8d87ef9411ad/
Log: Add an assert on the type of compiled_loop_token, even if not used
here
diff --git a/rpython/jit/backend/llgraph/runner.py
b/rpython/jit/backend/llgraph/runner.py
--- a/rpython/jit/backend/llgraph/runner.py
+++ b/rpython/jit/backend/llgraph/runner.py
@@ -471,6 +471,7 @@
return deadframe._saved_data
def grow_guard_compatible_switch(self, compiled_loop_token, descr, ref):
+ assert isinstance(compiled_loop_token, model.CompiledLoopToken)
if not hasattr(descr, '_guard_compatible_llgraph_lst'):
descr._guard_compatible_llgraph_lst = []
descr._guard_compatible_llgraph_lst.append(ref)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit