Skip to content

Commit

Permalink
Strength reduce _CHECK_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Nov 16, 2024
1 parent 1e3497e commit 115bd0e
Show file tree
Hide file tree
Showing 10 changed files with 253 additions and 162 deletions.
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;

// Borrowed. Should be safe because a strong reference is kept by the symbol.
PyObject *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,
PyObject *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

0 comments on commit 115bd0e

Please sign in to comment.