Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Include/internal/pycore_optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ struct _Py_UOpsAbstractFrame {
// Max stacklen
int stack_len;
int locals_len;
uint32_t globals_checked_version;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, this should be placed after the last few fields in the current struct and they should be commented. E.g. // globals to constant promotion.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fields should be in either ascending or descending order, for best packing, so I can't just add the fields at the end.
I'll add the comment.

bool builtins_watched;
bool globals_watched;
PyFunctionObject *func;

JitOptRef *stack_pointer;
JitOptRef *stack;
Expand Down
Loading
Loading