Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ee0129

Browse files
committed
Fix JIT build
1 parent 53be531 commit 5ee0129

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

Include/internal/pycore_frame.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@ PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)
318318
return (PyGenObject *)(((char *)frame) - offset_in_gen);
319319
}
320320

321+
PyAPI_FUNC(_PyInterpreterFrame *)
322+
_PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
323+
PyObject *locals, PyObject* const* args,
324+
size_t argcount, PyObject *kwnames);
325+
321326
#ifdef __cplusplus
322327
}
323328
#endif

Python/bytecodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3215,7 +3215,9 @@ dummy_func(
32153215
}
32163216

32173217
op(_CALL_NON_PY_GENERAL, (callable, self_or_null, args[oparg] -- res)) {
3218+
#if TIER_ONE
32183219
assert(opcode != INSTRUMENTED_CALL);
3220+
#endif
32193221
int total_args = oparg;
32203222
if (self_or_null != NULL) {
32213223
args--;

Python/ceval.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,6 @@ static PyObject * import_name(PyThreadState *, _PyInterpreterFrame *,
247247
static PyObject * import_from(PyThreadState *, PyObject *, PyObject *);
248248
static int check_args_iterable(PyThreadState *, PyObject *func, PyObject *vararg);
249249
static int get_exception_handler(PyCodeObject *, int, int*, int*, int*);
250-
static _PyInterpreterFrame *
251-
_PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
252-
PyObject *locals, PyObject* const* args,
253-
size_t argcount, PyObject *kwnames);
254250
static _PyInterpreterFrame *
255251
_PyEvalFramePushAndInit_Ex(PyThreadState *tstate, PyFunctionObject *func,
256252
PyObject *locals, Py_ssize_t nargs, PyObject *callargs, PyObject *kwargs);
@@ -1710,7 +1706,7 @@ _PyEval_FrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame * frame)
17101706
}
17111707

17121708
/* Consumes references to func, locals and all the args */
1713-
static _PyInterpreterFrame *
1709+
_PyInterpreterFrame *
17141710
_PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
17151711
PyObject *locals, PyObject* const* args,
17161712
size_t argcount, PyObject *kwnames)

Python/executor_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)