GH-113710: Tier 2 optimizer: check the function instead of checking globals. (GH-116410)
This commit is contained in:
12
Python/executor_cases.c.h
generated
12
Python/executor_cases.c.h
generated
@@ -3789,15 +3789,9 @@
|
||||
break;
|
||||
}
|
||||
|
||||
case _CHECK_GLOBALS: {
|
||||
PyObject *dict = (PyObject *)CURRENT_OPERAND();
|
||||
if (GLOBALS() != dict) goto deoptimize;
|
||||
break;
|
||||
}
|
||||
|
||||
case _CHECK_BUILTINS: {
|
||||
PyObject *dict = (PyObject *)CURRENT_OPERAND();
|
||||
if (BUILTINS() != dict) goto deoptimize;
|
||||
case _CHECK_FUNCTION: {
|
||||
PyObject *func = (PyObject *)CURRENT_OPERAND();
|
||||
if (frame->f_funcobj != func) goto deoptimize;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user