Skip to content

Commit

Permalink
GH-118095: Use broader specializations of CALL in tier 1, for better …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
markshannon authored May 4, 2024
1 parent 00da0af commit 1ab6356
Show file tree
Hide file tree
Showing 19 changed files with 863 additions and 448 deletions.
5 changes: 5 additions & 0 deletions Include/internal/pycore_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ PyGenObject *_PyFrame_GetGenerator(_PyInterpreterFrame *frame)
return (PyGenObject *)(((char *)frame) - offset_in_gen);
}

PyAPI_FUNC(_PyInterpreterFrame *)
_PyEvalFramePushAndInit(PyThreadState *tstate, PyFunctionObject *func,
PyObject *locals, PyObject* const* args,
size_t argcount, PyObject *kwnames);

#ifdef __cplusplus
}
#endif
Expand Down
31 changes: 23 additions & 8 deletions Include/internal/pycore_opcode_metadata.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1ab6356

Please sign in to comment.