mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
GH-113710: Add a "globals to constants" pass (GH-114592)
Converts specializations of `LOAD_GLOBAL` into constants during tier 2 optimization.
This commit is contained in:
parent
2091fb2a85
commit
0e71a295e9
16 changed files with 375 additions and 55 deletions
|
|
@ -15,8 +15,8 @@ module _testcapi
|
|||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=6361033e795369fc]*/
|
||||
|
||||
// Test dict watching
|
||||
static PyObject *g_dict_watch_events;
|
||||
static int g_dict_watchers_installed;
|
||||
static PyObject *g_dict_watch_events = NULL;
|
||||
static int g_dict_watchers_installed = 0;
|
||||
|
||||
static int
|
||||
dict_watch_callback(PyDict_WatchEvent event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue