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

Skip to content

Commit b54b271

Browse files
committed
Fix JIT build
1 parent dd5433b commit b54b271

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
@@ -315,6 +315,11 @@ PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)
315315
return (PyGenObject *)(((char *)frame) - offset_in_gen);
316316
}
317317

318+
PyAPI_FUNC(_PyInterpreterFrame *)
319+
_PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
320+
PyObject *locals, PyObject* const* args,
321+
size_t argcount, PyObject *kwnames);
322+
318323
#ifdef __cplusplus
319324
}
320325
#endif

Python/bytecodes.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3195,7 +3195,9 @@ dummy_func(
31953195
}
31963196

31973197
op(_CALL_NON_PY_GENERAL, (callable, self_or_null, args[oparg] -- res)) {
3198+
#if TIER_ONE
31983199
assert(opcode != INSTRUMENTED_CALL);
3200+
#endif
31993201
int total_args = oparg;
32003202
if (self_or_null != NULL) {
32013203
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);
@@ -1707,7 +1703,7 @@ _PyEval_FrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame * frame)
17071703
}
17081704

17091705
/* Consumes references to func, locals and all the args */
1710-
static _PyInterpreterFrame *
1706+
_PyInterpreterFrame *
17111707
_PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
17121708
PyObject *locals, PyObject* const* args,
17131709
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)