mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-113710: Tier 2 optimizer: check the function instead of checking globals. (GH-116410)
This commit is contained in:
parent
33c0aa3bb9
commit
27858e2a17
6 changed files with 137 additions and 149 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue