summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 806f748..a057466 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -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;
}