Skip to content

Commit 115bd0e

Browse files
Strength reduce _CHECK_VERSION
1 parent 1e3497e commit 115bd0e

10 files changed

Lines changed: 253 additions & 162 deletions

File tree

Include/internal/pycore_optimizer.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ struct _Py_UOpsAbstractFrame {
208208
_Py_UopsSymbol **stack_pointer;
209209
_Py_UopsSymbol **stack;
210210
_Py_UopsSymbol **locals;
211+
212+
// Borrowed. Should be safe because a strong reference is kept by the symbol.
213+
PyObject *f_funcobj;
211214
};
212215

213216
typedef struct _Py_UOpsAbstractFrame _Py_UOpsAbstractFrame;
@@ -268,7 +271,8 @@ extern _Py_UOpsAbstractFrame *_Py_uop_frame_new(
268271
PyCodeObject *co,
269272
int curr_stackentries,
270273
_Py_UopsSymbol **args,
271-
int arg_len);
274+
int arg_len,
275+
PyObject *f_funcobj);
272276
extern int _Py_uop_frame_pop(_Py_UOpsContext *ctx);
273277

274278
PyAPI_FUNC(PyObject *) _Py_uop_symbols_test(PyObject *self, PyObject *ignored);

0 commit comments

Comments
 (0)