Skip to content

Commit 0ca5cd1

Browse files
Hoist _CHECK_FUNCTION to frame sequence
1 parent 1e3497e commit 0ca5cd1

File tree

10 files changed

+228
-162
lines changed

10 files changed

+228
-162
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ struct _Py_UOpsAbstractFrame {
208208
_Py_UopsSymbol **stack_pointer;
209209
_Py_UopsSymbol **stack;
210210
_Py_UopsSymbol **locals;
211+
212+
_PyUOpInstruction *frame_creation_inst;
211213
};
212214

213215
typedef struct _Py_UOpsAbstractFrame _Py_UOpsAbstractFrame;
@@ -268,7 +270,8 @@ extern _Py_UOpsAbstractFrame *_Py_uop_frame_new(
268270
PyCodeObject *co,
269271
int curr_stackentries,
270272
_Py_UopsSymbol **args,
271-
int arg_len);
273+
int arg_len,
274+
_PyUOpInstruction *frame_creation_inst);
272275
extern int _Py_uop_frame_pop(_Py_UOpsContext *ctx);
273276

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

0 commit comments

Comments
 (0)