mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
GH-104584: Plugin optimizer API (GH-105100)
This commit is contained in:
parent
601ae09f0c
commit
4bfa01b9d9
31 changed files with 950 additions and 501 deletions
|
@ -232,6 +232,9 @@ name_op('LOAD_FROM_DICT_OR_GLOBALS', 175)
|
|||
def_op('LOAD_FROM_DICT_OR_DEREF', 176)
|
||||
hasfree.append(176)
|
||||
|
||||
# Optimizer hook
|
||||
def_op('ENTER_EXECUTOR', 230)
|
||||
|
||||
# Instrumented instructions
|
||||
MIN_INSTRUMENTED_OPCODE = 237
|
||||
|
||||
|
@ -486,6 +489,9 @@ _cache_format = {
|
|||
"SEND": {
|
||||
"counter": 1,
|
||||
},
|
||||
"JUMP_BACKWARD": {
|
||||
"counter": 1,
|
||||
},
|
||||
}
|
||||
|
||||
_inline_cache_entries = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue