Skip to content

Commit 264732d

Browse files
clean up
1 parent d472661 commit 264732d

File tree

5 files changed

+13
-34
lines changed

5 files changed

+13
-34
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ dummy_func(
26392639
op(_GUARD_NOS_TYPE_VERSION, (type_version/2, nos, unused -- nos, unused)) {
26402640
PyTypeObject *tp = (PyTypeObject *)PyStackRef_AsPyObjectBorrow(nos);
26412641
assert(type_version != 0);
2642-
EXIT_IF(!PyType_Check(tp));
2642+
assert(PyType_Check(tp));
26432643
EXIT_IF(FT_ATOMIC_LOAD_UINT_RELAXED(tp->tp_version_tag) != type_version);
26442644
}
26452645

Python/executor_cases.c.h

Lines changed: 4 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer_analysis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ lookup_super_attr(JitOptContext *ctx, _PyBloomFilter *dependencies,
433433
}
434434
return sym_new_not_null(ctx);
435435
}
436-
if (_PyType_HasFeature(Py_TYPE(lookup), Py_TPFLAGS_METHOD_DESCRIPTOR)) {
436+
if (Py_TYPE(lookup)->tp_flags & Py_TPFLAGS_METHOD_DESCRIPTOR) {
437437
int opcode = mortal;
438438
if (_Py_IsImmortal(lookup) || (obj_type->tp_flags & Py_TPFLAGS_IMMUTABLETYPE)) {
439439
opcode = immortal;

Python/optimizer_bytecodes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,6 @@ dummy_func(void) {
968968
}
969969

970970
op(_LOAD_SUPER_ATTR_METHOD, (global_super_st, class_st, self_st -- attr, self_or_null)) {
971-
attr = sym_new_not_null(ctx);
972971
self_or_null = self_st;
973972
PyTypeObject *su_type = (PyTypeObject *)sym_get_const(ctx, class_st);
974973
PyTypeObject *obj_type = sym_get_type(self_st);

Python/optimizer_cases.c.h

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)