Skip to content

Commit 1ab6356

Browse files
authored
GH-118095: Use broader specializations of CALL in tier 1, for better tier 2 support of calls. (GH-118322)
* Add CALL_PY_GENERAL, CALL_BOUND_METHOD_GENERAL and call CALL_NON_PY_GENERAL specializations. * Remove CALL_PY_WITH_DEFAULTS specialization * Use CALL_NON_PY_GENERAL in more cases when otherwise failing to specialize
1 parent 00da0af commit 1ab6356

19 files changed

+863
-448
lines changed

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

Include/internal/pycore_opcode_metadata.h

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

0 commit comments

Comments
 (0)