Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-126902: Strength reduce _CHECK_FUNCTION #126856

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Include/internal/pycore_optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ struct _Py_UOpsAbstractFrame {
_Py_UopsSymbol **stack_pointer;
_Py_UopsSymbol **stack;
_Py_UopsSymbol **locals;

// Might be NULL if unable to statically determine.
Fidget-Spinner marked this conversation as resolved.
Show resolved Hide resolved
_Py_UopsSymbol *f_funcobj;
};

typedef struct _Py_UOpsAbstractFrame _Py_UOpsAbstractFrame;
Expand Down Expand Up @@ -268,7 +271,8 @@ extern _Py_UOpsAbstractFrame *_Py_uop_frame_new(
PyCodeObject *co,
int curr_stackentries,
_Py_UopsSymbol **args,
int arg_len);
int arg_len,
_Py_UopsSymbol *f_funcobj);
extern int _Py_uop_frame_pop(_Py_UOpsContext *ctx);

PyAPI_FUNC(PyObject *) _Py_uop_symbols_test(PyObject *self, PyObject *ignored);
Expand Down
Loading
Loading