Skip to content

Commit 3500ea9

Browse files
committed
Move globals-to-consts pass into main optimizer pass
1 parent d28150d commit 3500ea9

File tree

10 files changed

+454
-495
lines changed

10 files changed

+454
-495
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,10 @@ struct _Py_UOpsAbstractFrame {
286286
// Max stacklen
287287
int stack_len;
288288
int locals_len;
289-
bool function_checked;
289+
uint32_t globals_checked_version;
290290
bool builtins_watched;
291291
bool globals_watched;
292+
PyFunctionObject *func;
292293

293294
JitOptRef *stack_pointer;
294295
JitOptRef *stack;
@@ -311,7 +312,6 @@ typedef struct _JitOptContext {
311312
_Py_UOpsAbstractFrame *frame;
312313
_Py_UOpsAbstractFrame frames[MAX_ABSTRACT_FRAME_DEPTH];
313314
int curr_frame_depth;
314-
uint32_t prechecked_function_version;
315315

316316
// Arena for the symbolic types.
317317
ty_arena t_arena;

0 commit comments

Comments
 (0)