GH-113710: Tier 2 optimizer: check the function instead of checking globals. (GH-116410)

This commit is contained in:
Mark Shannon 2024-03-06 13:12:23 +00:00 committed by GitHub
parent 33c0aa3bb9
commit 27858e2a17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 137 additions and 149 deletions

View file

@ -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 */