@@ -1326,16 +1326,17 @@ dummy_func(void) {
13261326 if (!sym_is_null (self_or_null )) {
13271327 total_args ++ ;
13281328 }
1329- PyObject * self = NULL ;
1329+ PyTypeObject * self_type = NULL ;
13301330 if (!sym_is_null (self_or_null )) {
1331- self = sym_get_const (ctx , self_or_null );
1332- } else {
1333- self = sym_get_const (ctx , args [0 ]);
1331+ self_type = sym_get_type (self_or_null );
1332+ }
1333+ else {
1334+ self_type = sym_get_type (args [0 ]);
13341335 }
13351336 PyTypeObject * d_type = ((PyMethodDescrObject * )callable_o )-> d_common .d_type ;
13361337 if (total_args == 2 &&
13371338 ((PyMethodDescrObject * )callable_o )-> d_method -> ml_flags == METH_O &&
1338- self && Py_IS_TYPE ( self , d_type ) ) {
1339+ self_type == d_type ) {
13391340 ADD_OP (_NOP , 0 , 0 );
13401341 }
13411342 }
@@ -1351,16 +1352,17 @@ dummy_func(void) {
13511352 if (!sym_is_null (self_or_null )) {
13521353 total_args ++ ;
13531354 }
1354- PyObject * self = NULL ;
1355+ PyTypeObject * self_type = NULL ;
13551356 if (!sym_is_null (self_or_null )) {
1356- self = sym_get_const (ctx , self_or_null );
1357- } else {
1358- self = sym_get_const (ctx , args [0 ]);
1357+ self_type = sym_get_type (self_or_null );
1358+ }
1359+ else {
1360+ self_type = sym_get_type (args [0 ]);
13591361 }
13601362 PyTypeObject * d_type = ((PyMethodDescrObject * )callable_o )-> d_common .d_type ;
13611363 if (total_args != 0 &&
13621364 ((PyMethodDescrObject * )callable_o )-> d_method -> ml_flags == (METH_FASTCALL |METH_KEYWORDS ) &&
1363- self && Py_IS_TYPE ( self , d_type ) ) {
1365+ self_type == d_type ) {
13641366 ADD_OP (_NOP , 0 , 0 );
13651367 }
13661368 }
@@ -1376,16 +1378,17 @@ dummy_func(void) {
13761378 if (!sym_is_null (self_or_null )) {
13771379 total_args ++ ;
13781380 }
1379- PyObject * self = NULL ;
1381+ PyTypeObject * self_type = NULL ;
13801382 if (!sym_is_null (self_or_null )) {
1381- self = sym_get_const (ctx , self_or_null );
1382- } else {
1383- self = sym_get_const (ctx , args [0 ]);
1383+ self_type = sym_get_type (self_or_null );
1384+ }
1385+ else {
1386+ self_type = sym_get_type (args [0 ]);
13841387 }
13851388 PyTypeObject * d_type = ((PyMethodDescrObject * )callable_o )-> d_common .d_type ;
13861389 if (total_args == 1 &&
13871390 ((PyMethodDescrObject * )callable_o )-> d_method -> ml_flags == METH_NOARGS &&
1388- self && Py_IS_TYPE ( self , d_type ) ) {
1391+ self_type == d_type ) {
13891392 ADD_OP (_NOP , 0 , 0 );
13901393 }
13911394 }
@@ -1434,16 +1437,17 @@ dummy_func(void) {
14341437 if (!sym_is_null (self_or_null )) {
14351438 total_args ++ ;
14361439 }
1437- PyObject * self = NULL ;
1440+ PyTypeObject * self_type = NULL ;
14381441 if (!sym_is_null (self_or_null )) {
1439- self = sym_get_const (ctx , self_or_null );
1440- } else {
1441- self = sym_get_const (ctx , args [0 ]);
1442+ self_type = sym_get_type (self_or_null );
1443+ }
1444+ else {
1445+ self_type = sym_get_type (args [0 ]);
14421446 }
14431447 PyTypeObject * d_type = ((PyMethodDescrObject * )callable_o )-> d_common .d_type ;
14441448 if (total_args != 0 &&
14451449 ((PyMethodDescrObject * )callable_o )-> d_method -> ml_flags == METH_FASTCALL &&
1446- self && Py_IS_TYPE ( self , d_type ) ) {
1450+ self_type == d_type ) {
14471451 ADD_OP (_NOP , 0 , 0 );
14481452 }
14491453 }
0 commit comments