summaryrefslogtreecommitdiff
path: root/Objects/genobject.c
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
commit0a023be4188e0fae813a3a468528452c02f553bb (patch)
tree8f6b8191d73f87041b773f9b529f6b911baf9d73 /Objects/genobject.c
parent5d3bfadae1b16e75a2e93c0dc7836855b15a1a73 (diff)
downloadcpython-0a023be4188e0fae813a3a468528452c02f553bb.tar.gz
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 59f53cefcb..9d93a761d7 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