Skip to content

Commit 3e137ab

Browse files
expose the function to the JIT
1 parent 585be72 commit 3e137ab

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Include/internal/pycore_interpframe.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ _PyEvalFramePushAndInit(PyThreadState *tstate, _PyStackRef func,
395395
size_t argcount, PyObject *kwnames,
396396
_PyInterpreterFrame *previous);
397397

398+
PyAPI_FUNC(_PyInterpreterFrame *)
399+
_PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
400+
PyObject *locals, Py_ssize_t nargs, PyObject *callargs, PyObject *kwargs, _PyInterpreterFrame *previous);
401+
398402
#ifdef __cplusplus
399403
}
400404
#endif

Python/ceval.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,6 @@ static void monitor_throw(PyThreadState *tstate,
329329
_Py_CODEUNIT *instr);
330330

331331
static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
332-
static _PyInterpreterFrame *
333-
_PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
334-
PyObject *locals, Py_ssize_t nargs, PyObject *callargs, PyObject *kwargs, _PyInterpreterFrame *previous);
335332

336333
#ifdef HAVE_ERRNO_H
337334
#include <errno.h>
@@ -2435,7 +2432,7 @@ _PyEvalFramePushAndInit(PyThreadState *tstate, _PyStackRef func,
24352432
/* Same as _PyEvalFramePushAndInit but takes an args tuple and kwargs dict.
24362433
Steals references to func, callargs and kwargs.
24372434
*/
2438-
static _PyInterpreterFrame *
2435+
_PyInterpreterFrame *
24392436
_PyEvalFramePushAndInit_Ex(PyThreadState *tstate, _PyStackRef func,
24402437
PyObject *locals, Py_ssize_t nargs, PyObject *callargs, PyObject *kwargs, _PyInterpreterFrame *previous)
24412438
{

0 commit comments

Comments
 (0)