diff options
author | Mark Shannon <mark@hotpy.org> | 2021-06-14 11:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 11:04:09 +0100 |
commit | eecbc7c3900a7f40d8498b151db543a202c72f74 (patch) | |
tree | 6be5d67366f8df3e24c3dbed0786ec3c4a29bf1b /Include/cpython/code.h | |
parent | fafcfff9262ae9dee03a00006638dfcbcfc23a7b (diff) | |
download | cpython-git-eecbc7c3900a7f40d8498b151db543a202c72f74.tar.gz |
bpo-44338: Port LOAD_GLOBAL to PEP 659 adaptive interpreter (GH-26638)
* Add specializations of LOAD_GLOBAL.
* Add more stats.
* Remove old opcache; it is no longer used.
* Add NEWS
Diffstat (limited to 'Include/cpython/code.h')
-rw-r--r-- | Include/cpython/code.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index f6e789dd4d..df79ddbc1b 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -106,20 +106,6 @@ struct PyCodeObject { interpreter. */ union _cache_or_instruction *co_quickened; - /* Per opcodes just-in-time cache - * - * To reduce cache size, we use indirect mapping from opcode index to - * cache object: - * cache = co_opcache[co_opcache_map[next_instr - first_instr] - 1] - */ - - // co_opcache_map is indexed by (next_instr - first_instr). - // * 0 means there is no cache for this opcode. - // * n > 0 means there is cache in co_opcache[n-1]. - unsigned char *co_opcache_map; - _PyOpcache *co_opcache; - int co_opcache_flag; // used to determine when create a cache. - unsigned char co_opcache_size; // length of co_opcache. }; /* Masks for co_flags above */ |