@@ -18,53 +18,53 @@ extern "C" {
1818#define CACHE_ENTRIES (cache ) (sizeof(cache)/sizeof(_Py_CODEUNIT))
1919
2020typedef struct {
21- _Py_CODEUNIT counter ;
22- _Py_CODEUNIT index ;
23- _Py_CODEUNIT module_keys_version [2 ];
24- _Py_CODEUNIT builtin_keys_version ;
21+ uint16_t counter ;
22+ uint16_t index ;
23+ uint16_t module_keys_version [2 ];
24+ uint16_t builtin_keys_version ;
2525} _PyLoadGlobalCache ;
2626
2727#define INLINE_CACHE_ENTRIES_LOAD_GLOBAL CACHE_ENTRIES(_PyLoadGlobalCache)
2828
2929typedef struct {
30- _Py_CODEUNIT counter ;
30+ uint16_t counter ;
3131} _PyBinaryOpCache ;
3232
3333#define INLINE_CACHE_ENTRIES_BINARY_OP CACHE_ENTRIES(_PyBinaryOpCache)
3434
3535typedef struct {
36- _Py_CODEUNIT counter ;
36+ uint16_t counter ;
3737} _PyUnpackSequenceCache ;
3838
3939#define INLINE_CACHE_ENTRIES_UNPACK_SEQUENCE \
4040 CACHE_ENTRIES(_PyUnpackSequenceCache)
4141
4242typedef struct {
43- _Py_CODEUNIT counter ;
44- _Py_CODEUNIT mask ;
43+ uint16_t counter ;
44+ uint16_t mask ;
4545} _PyCompareOpCache ;
4646
4747#define INLINE_CACHE_ENTRIES_COMPARE_OP CACHE_ENTRIES(_PyCompareOpCache)
4848
4949typedef struct {
50- _Py_CODEUNIT counter ;
51- _Py_CODEUNIT type_version [2 ];
52- _Py_CODEUNIT func_version ;
50+ uint16_t counter ;
51+ uint16_t type_version [2 ];
52+ uint16_t func_version ;
5353} _PyBinarySubscrCache ;
5454
5555#define INLINE_CACHE_ENTRIES_BINARY_SUBSCR CACHE_ENTRIES(_PyBinarySubscrCache)
5656
5757typedef struct {
58- _Py_CODEUNIT counter ;
59- _Py_CODEUNIT version [2 ];
60- _Py_CODEUNIT index ;
58+ uint16_t counter ;
59+ uint16_t version [2 ];
60+ uint16_t index ;
6161} _PyAttrCache ;
6262
6363typedef struct {
64- _Py_CODEUNIT counter ;
65- _Py_CODEUNIT type_version [2 ];
66- _Py_CODEUNIT keys_version [2 ];
67- _Py_CODEUNIT descr [4 ];
64+ uint16_t counter ;
65+ uint16_t type_version [2 ];
66+ uint16_t keys_version [2 ];
67+ uint16_t descr [4 ];
6868} _PyLoadMethodCache ;
6969
7070
@@ -74,21 +74,21 @@ typedef struct {
7474#define INLINE_CACHE_ENTRIES_STORE_ATTR CACHE_ENTRIES(_PyAttrCache)
7575
7676typedef struct {
77- _Py_CODEUNIT counter ;
78- _Py_CODEUNIT func_version [2 ];
79- _Py_CODEUNIT min_args ;
77+ uint16_t counter ;
78+ uint16_t func_version [2 ];
79+ uint16_t min_args ;
8080} _PyCallCache ;
8181
8282#define INLINE_CACHE_ENTRIES_CALL CACHE_ENTRIES(_PyCallCache)
8383
8484typedef struct {
85- _Py_CODEUNIT counter ;
85+ uint16_t counter ;
8686} _PyStoreSubscrCache ;
8787
8888#define INLINE_CACHE_ENTRIES_STORE_SUBSCR CACHE_ENTRIES(_PyStoreSubscrCache)
8989
9090typedef struct {
91- _Py_CODEUNIT counter ;
91+ uint16_t counter ;
9292} _PyForIterCache ;
9393
9494#define INLINE_CACHE_ENTRIES_FOR_ITER CACHE_ENTRIES(_PyForIterCache)
@@ -409,7 +409,7 @@ write_location_entry_start(uint8_t *ptr, int code, int length)
409409static inline uint16_t
410410adaptive_counter_bits (int value , int backoff ) {
411411 return (value << ADAPTIVE_BACKOFF_BITS ) |
412- (backoff & ((1 <<ADAPTIVE_BACKOFF_BITS )- 1 ));
412+ (backoff & ((1 <<ADAPTIVE_BACKOFF_BITS )- 1 ));
413413}
414414
415415static inline uint16_t
0 commit comments