summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-06-02 10:46:18 (GMT)
committerGitHub <noreply@github.com>2023-06-02 10:46:18 (GMT)
commit4bfa01b9d911ce9358cf1a453bee15554f8e4c07 (patch)
treebd61d8459bf30d42abf0be7258de91360bea434b /Lib/opcode.py
parent601ae09f0c8eda213b9050892f5ce9b91f0aa522 (diff)
downloadcpython-4bfa01b9d911ce9358cf1a453bee15554f8e4c07.zip
cpython-4bfa01b9d911ce9358cf1a453bee15554f8e4c07.tar.gz
cpython-4bfa01b9d911ce9358cf1a453bee15554f8e4c07.tar.bz2
GH-104584: Plugin optimizer API (GH-105100)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index 6bb2f1c..b333029 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -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 = [