aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-09 17:12:17 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-12-09 17:12:17 +0100
commit0ca246c5e7bc9a8c1886519f313a41334a60e011 (patch)
treec6e48bf118b362626590193e13c69499571d34b8 /Objects/genobject.c
parentRemove useless variable initialization (diff)
downloadcpython-0ca246c5e7bc9a8c1886519f313a41334a60e011.tar.gz
cpython-0ca246c5e7bc9a8c1886519f313a41334a60e011.tar.bz2
cpython-0ca246c5e7bc9a8c1886519f313a41334a60e011.zip
Inline PyEval_EvalFrameEx() in callers
The PEP 523 modified PyEval_EvalFrameEx(): it's now an indirection to interp->eval_frame(). Inline the call in performance critical code. Leave PyEval_EvalFrame() unchanged, this function is only kept for backward compatibility.
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index 59f53cefcb3..9d93a761d7a 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -186,7 +186,7 @@ gen_send_ex(PyGenObject *gen, PyObject *arg, int exc, int closing)
f->f_back = tstate->frame;
gen->gi_running = 1;
- result = PyEval_EvalFrameEx(f, exc);
+ result = tstate->interp->eval_frame(f, exc);
gen->gi_running = 0;
/* Don't keep the reference to f_back any longer than necessary. It