Author: Armin Rigo <[email protected]>
Branch:
Changeset: r80022:8c3dea33025b
Date: 2015-10-07 17:30 +0200
http://bitbucket.org/pypy/pypy/changeset/8c3dea33025b/
Log: Add an assert in case we forget to say jit_hooks.stats_xxx(None)
diff --git a/rpython/jit/metainterp/warmspot.py
b/rpython/jit/metainterp/warmspot.py
--- a/rpython/jit/metainterp/warmspot.py
+++ b/rpython/jit/metainterp/warmspot.py
@@ -780,6 +780,8 @@
if func.func_name.startswith('stats_'):
# get special treatment since we rewrite it to a call that accepts
# jit driver
+ assert len(op.args) >= 3, ("%r must have a first argument "
+ "(which is None)" % (func,))
func = func_with_new_name(func, func.func_name + '_compiled')
def new_func(ignored, *args):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit