@@ -866,22 +866,22 @@ dummy_func(void) {
866866 op (_LOAD_CONST , (-- value )) {
867867 PyCodeObject * co = get_current_code_object (ctx );
868868 PyObject * val = PyTuple_GET_ITEM (co -> co_consts , oparg );
869- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( val ) );
869+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) val );
870870 value = PyJitRef_Borrow (sym_new_const (ctx , val ));
871871 }
872872
873873 op (_LOAD_COMMON_CONSTANT , (-- value )) {
874874 assert (oparg < NUM_COMMON_CONSTANTS );
875875 PyObject * val = _PyInterpreterState_GET ()-> common_consts [oparg ];
876- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( val ) );
876+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) val );
877877 value = PyJitRef_Borrow (sym_new_const (ctx , val ));
878878 }
879879
880880 op (_LOAD_SMALL_INT , (-- value )) {
881881 PyObject * val = PyLong_FromLong (oparg );
882882 assert (val );
883883 assert (_Py_IsImmortal (val ));
884- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( val ) );
884+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) val );
885885 value = PyJitRef_Borrow (sym_new_const (ctx , val ));
886886 }
887887
@@ -959,7 +959,7 @@ dummy_func(void) {
959959 else {
960960 bool immortal = _Py_IsImmortal (res );
961961 ADD_OP (immortal ? _LOAD_CONST_INLINE_BORROW : _LOAD_CONST_INLINE ,
962- 0 , immortal ? PyStackRef_TagBorrow ( res ) : (uintptr_t )res );
962+ 0 , (uintptr_t )res );
963963 ADD_OP (_SWAP , 2 , 0 );
964964 attr = sym_new_const (ctx , res );
965965 }
@@ -1600,7 +1600,7 @@ dummy_func(void) {
16001600 ADD_OP (_SWAP , 3 , 0 );
16011601 optimize_pop_top (ctx , this_instr , callable );
16021602 optimize_pop_top (ctx , this_instr , null );
1603- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( type ) );
1603+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) type );
16041604 ADD_OP (_SWAP , 2 , 0 );
16051605 }
16061606 else {
@@ -1642,7 +1642,7 @@ dummy_func(void) {
16421642 optimize_pop_top (ctx , this_instr , instance );
16431643 optimize_pop_top (ctx , this_instr , null );
16441644 optimize_pop_top (ctx , this_instr , callable );
1645- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( out ) );
1645+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) out );
16461646 }
16471647 }
16481648
@@ -2013,7 +2013,7 @@ dummy_func(void) {
20132013 ADD_OP (_GUARD_TYPE_VERSION , 0 , type -> tp_version_tag );
20142014 bool immortal = _Py_IsImmortal (descr ) || (type -> tp_flags & Py_TPFLAGS_IMMUTABLETYPE );
20152015 ADD_OP (immortal ? _LOAD_CONST_INLINE_BORROW : _LOAD_CONST_INLINE ,
2016- 0 , immortal ? PyStackRef_TagBorrow ( descr ) : (uintptr_t )descr );
2016+ 0 , (uintptr_t )descr );
20172017 ADD_OP (_SWAP , 3 , 0 );
20182018 optimize_pop_top (ctx , this_instr , method_and_self [0 ]);
20192019 if ((type -> tp_flags & Py_TPFLAGS_IMMUTABLETYPE ) == 0 ) {
@@ -2044,7 +2044,7 @@ dummy_func(void) {
20442044 }
20452045
20462046 op (_REPLACE_WITH_TRUE , (value -- res , v )) {
2047- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( Py_True ) );
2047+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) Py_True );
20482048 ADD_OP (_SWAP , 2 , 0 );
20492049 res = sym_new_const (ctx , Py_True );
20502050 v = value ;
@@ -2330,7 +2330,7 @@ dummy_func(void) {
23302330 goto error ;
23312331 }
23322332 if (_Py_IsImmortal (temp )) {
2333- ADD_OP (_SHUFFLE_3_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( temp ) );
2333+ ADD_OP (_SHUFFLE_3_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) temp );
23342334 }
23352335 res = sym_new_const (ctx , temp );
23362336 Py_DECREF (temp );
@@ -2351,7 +2351,7 @@ dummy_func(void) {
23512351 goto error ;
23522352 }
23532353 if (_Py_IsImmortal (temp )) {
2354- ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , PyStackRef_TagBorrow ( temp ) );
2354+ ADD_OP (_LOAD_CONST_INLINE_BORROW , 0 , ( uintptr_t ) temp );
23552355 }
23562356 len = sym_new_const (ctx , temp );
23572357 Py_DECREF (temp );
0 commit comments