From 0f978c44d64481492bf99ae441f4264aa03da1a5 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Fri, 7 Nov 2025 21:08:12 +0000 Subject: [PATCH] fix windows --- Include/internal/pycore_interp_structs.h | 50 +++++++++++++----------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/Include/internal/pycore_interp_structs.h b/Include/internal/pycore_interp_structs.h index 704a08424993..a2b5afa8736c 100644 --- a/Include/internal/pycore_interp_structs.h +++ b/Include/internal/pycore_interp_structs.h @@ -757,31 +757,35 @@ struct _Py_unique_id_pool { typedef _Py_CODEUNIT *(*_PyJitEntryFuncPtr)(struct _PyExecutorObject *exec, _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate); +typedef struct _PyJitTracerInitialState { + int stack_depth; + int chain_depth; + struct _PyExitData *exit; + PyCodeObject *code; // Strong + PyFunctionObject *func; // Strong + _Py_CODEUNIT *start_instr; + _Py_CODEUNIT *close_loop_instr; + _Py_CODEUNIT *jump_backward_instr; +} _PyJitTracerInitialState; + +typedef struct _PyJitTracerPreviousState { + bool dependencies_still_valid; + bool instr_is_super; + int code_max_size; + int code_curr_size; + int instr_oparg; + int instr_stacklevel; + int specialize_counter; + _Py_CODEUNIT *instr; + PyCodeObject *instr_code; // Strong + _PyInterpreterFrame *instr_frame; + _PyBloomFilter dependencies; +} _PyJitTracerPreviousState; + typedef struct _PyJitTracerState { - struct { - int stack_depth; - int chain_depth; - struct _PyExitData *exit; - PyCodeObject *code; // Strong - PyFunctionObject *func; // Strong - _Py_CODEUNIT *start_instr; - _Py_CODEUNIT *close_loop_instr; - _Py_CODEUNIT *jump_backward_instr; - } initial_state; _PyUOpInstruction *code_buffer; - struct { - bool dependencies_still_valid; - bool instr_is_super; - int code_max_size; - int code_curr_size; - int instr_oparg; - int instr_stacklevel; - int specialize_counter; - _Py_CODEUNIT *instr; - PyCodeObject *instr_code; // Strong - _PyInterpreterFrame *instr_frame; - _PyBloomFilter dependencies; - } prev_state;; + _PyJitTracerInitialState initial_state; + _PyJitTracerPreviousState prev_state; } _PyJitTracerState; /* PyInterpreterState holds the global state for one of the runtime's -- 2.47.3