| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1323,19 +1323,20 @@ dummy_func(void) { | |||
| 1323 | 1323 | PyObject *callable_o = sym_get_const(ctx, callable); | |
| 1324 | 1324 | if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) { | |
| 1325 | 1325 | int total_args = oparg; | |
| 1326 | - if (!sym_is_null(self_or_null)) { | ||
| 1326 | + if (sym_is_not_null(self_or_null)) { | ||
| 1327 | 1327 | total_args++; | |
| 1328 | 1328 | } | |
| 1329 | - PyObject *self = NULL; | ||
| 1330 | - 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]); | ||
| 1329 | + PyTypeObject *self_type = NULL; | ||
| 1330 | + if (sym_is_not_null(self_or_null)) { | ||
| 1331 | + self_type = sym_get_type(self_or_null); | ||
| 1332 | + } | ||
| 1333 | + else { | ||
| 1334 | + self_type = sym_get_type(args[0]); | ||
| 1334 | 1335 | } | |
| 1335 | 1336 | PyTypeObject *d_type = ((PyMethodDescrObject *)callable_o)->d_common.d_type; | |
| 1336 | 1337 | if (total_args == 2 && | |
| 1337 | 1338 | ((PyMethodDescrObject *)callable_o)->d_method->ml_flags == METH_O && | |
| 1338 | - self && Py_IS_TYPE(self, d_type)) { | ||
| 1339 | + self_type == d_type) { | ||
| 1339 | 1340 | ADD_OP(_NOP, 0, 0); | |
| 1340 | 1341 | } | |
| 1341 | 1342 | } | |
@@ -1348,19 +1349,20 @@ dummy_func(void) { | |||
| 1348 | 1349 | PyObject *callable_o = sym_get_const(ctx, callable); | |
| 1349 | 1350 | if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) { | |
| 1350 | 1351 | int total_args = oparg; | |
| 1351 | - if (!sym_is_null(self_or_null)) { | ||
| 1352 | + if (sym_is_not_null(self_or_null)) { | ||
| 1352 | 1353 | total_args++; | |
| 1353 | 1354 | } | |
| 1354 | - PyObject *self = NULL; | ||
| 1355 | - 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]); | ||
| 1355 | + PyTypeObject *self_type = NULL; | ||
| 1356 | + if (sym_is_not_null(self_or_null)) { | ||
| 1357 | + self_type = sym_get_type(self_or_null); | ||
| 1358 | + } | ||
| 1359 | + else { | ||
| 1360 | + self_type = sym_get_type(args[0]); | ||
| 1359 | 1361 | } | |
| 1360 | 1362 | PyTypeObject *d_type = ((PyMethodDescrObject *)callable_o)->d_common.d_type; | |
| 1361 | 1363 | if (total_args != 0 && | |
| 1362 | 1364 | ((PyMethodDescrObject *)callable_o)->d_method->ml_flags == (METH_FASTCALL|METH_KEYWORDS) && | |
| 1363 | - self && Py_IS_TYPE(self, d_type)) { | ||
| 1365 | + self_type == d_type) { | ||
| 1364 | 1366 | ADD_OP(_NOP, 0, 0); | |
| 1365 | 1367 | } | |
| 1366 | 1368 | } | |
@@ -1373,19 +1375,20 @@ dummy_func(void) { | |||
| 1373 | 1375 | PyObject *callable_o = sym_get_const(ctx, callable); | |
| 1374 | 1376 | if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) { | |
| 1375 | 1377 | int total_args = oparg; | |
| 1376 | - if (!sym_is_null(self_or_null)) { | ||
| 1378 | + if (sym_is_not_null(self_or_null)) { | ||
| 1377 | 1379 | total_args++; | |
| 1378 | 1380 | } | |
| 1379 | - PyObject *self = NULL; | ||
| 1380 | - 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]); | ||
| 1381 | + PyTypeObject *self_type = NULL; | ||
| 1382 | + if (sym_is_not_null(self_or_null)) { | ||
| 1383 | + self_type = sym_get_type(self_or_null); | ||
| 1384 | + } | ||
| 1385 | + else { | ||
| 1386 | + self_type = sym_get_type(args[0]); | ||
| 1384 | 1387 | } | |
| 1385 | 1388 | PyTypeObject *d_type = ((PyMethodDescrObject *)callable_o)->d_common.d_type; | |
| 1386 | 1389 | if (total_args == 1 && | |
| 1387 | 1390 | ((PyMethodDescrObject *)callable_o)->d_method->ml_flags == METH_NOARGS && | |
| 1388 | - self && Py_IS_TYPE(self, d_type)) { | ||
| 1391 | + self_type == d_type) { | ||
| 1389 | 1392 | ADD_OP(_NOP, 0, 0); | |
| 1390 | 1393 | } | |
| 1391 | 1394 | } | |
@@ -1431,19 +1434,20 @@ dummy_func(void) { | |||
| 1431 | 1434 | PyObject *callable_o = sym_get_const(ctx, callable); | |
| 1432 | 1435 | if (callable_o && sym_matches_type(callable, &PyMethodDescr_Type)) { | |
| 1433 | 1436 | int total_args = oparg; | |
| 1434 | - if (!sym_is_null(self_or_null)) { | ||
| 1437 | + if (sym_is_not_null(self_or_null)) { | ||
| 1435 | 1438 | total_args++; | |
| 1436 | 1439 | } | |
| 1437 | - PyObject *self = NULL; | ||
| 1438 | - 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]); | ||
| 1440 | + PyTypeObject *self_type = NULL; | ||
| 1441 | + if (sym_is_not_null(self_or_null)) { | ||
| 1442 | + self_type = sym_get_type(self_or_null); | ||
| 1443 | + } | ||
| 1444 | + else { | ||
| 1445 | + self_type = sym_get_type(args[0]); | ||
| 1442 | 1446 | } | |
| 1443 | 1447 | PyTypeObject *d_type = ((PyMethodDescrObject *)callable_o)->d_common.d_type; | |
| 1444 | 1448 | if (total_args != 0 && | |
| 1445 | 1449 | ((PyMethodDescrObject *)callable_o)->d_method->ml_flags == METH_FASTCALL && | |
| 1446 | - self && Py_IS_TYPE(self, d_type)) { | ||
| 1450 | + self_type == d_type) { | ||
| 1447 | 1451 | ADD_OP(_NOP, 0, 0); | |
| 1448 | 1452 | } | |
| 1449 | 1453 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments