gh-115685: Type/values propagate for TO_BOOL in tier 2 (GH-115686)

This commit is contained in:
Ken Jin 2024-03-01 06:13:38 +08:00 committed by GitHub
parent c04a981ff4
commit d01886c5c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 163 additions and 30 deletions

View file

@ -3759,6 +3759,17 @@
break;
}
case _POP_TOP_LOAD_CONST_INLINE_BORROW: {
PyObject *pop;
PyObject *value;
pop = stack_pointer[-1];
PyObject *ptr = (PyObject *)CURRENT_OPERAND();
Py_DECREF(pop);
value = ptr;
stack_pointer[-1] = value;
break;
}
case _LOAD_CONST_INLINE_WITH_NULL: {
PyObject *value;
PyObject *null;