summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index 15794cb..ad4ea4e 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -4058,12 +4058,8 @@ dummy_func(
null = NULL;
}
- tier2 op(_CHECK_GLOBALS, (dict/4 -- )) {
- DEOPT_IF(GLOBALS() != dict);
- }
-
- tier2 op(_CHECK_BUILTINS, (dict/4 -- )) {
- DEOPT_IF(BUILTINS() != dict);
+ tier2 op(_CHECK_FUNCTION, (func/4 -- )) {
+ DEOPT_IF(frame->f_funcobj != func);
}
/* Internal -- for testing executors */