summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorJuhi Chandalia <jkchandalia@gmail.com>2023-05-03 02:00:17 (GMT)
committerGitHub <noreply@github.com>2023-05-03 02:00:17 (GMT)
commit872cbc613245db7a1fc5e6656ed0135d2e115f50 (patch)
tree130aa47855542bf7467ddc96e14008faf652f040 /Lib/opcode.py
parent65a49c6553a27cc36eebb4b79f409c3cb4450d8c (diff)
downloadcpython-872cbc613245db7a1fc5e6656ed0135d2e115f50.zip
cpython-872cbc613245db7a1fc5e6656ed0135d2e115f50.tar.gz
cpython-872cbc613245db7a1fc5e6656ed0135d2e115f50.tar.bz2
GH-103963: Make dis display names of args for intrinsics opcodes (#104029)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index aef8407..ad54bd2 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -306,6 +306,21 @@ _nb_ops = [
("NB_INPLACE_XOR", "^="),
]
+_intrinsic_1_descs = [
+ "INTRINSIC_1_INVALID",
+ "INTRINSIC_PRINT",
+ "INTRINSIC_IMPORT_STAR",
+ "INTRINSIC_STOPITERATION_ERROR",
+ "INTRINSIC_ASYNC_GEN_WRAP",
+ "INTRINSIC_UNARY_POSITIVE",
+ "INTRINSIC_LIST_TO_TUPLE",
+]
+
+_intrinsic_2_descs = [
+ 'INTRINSIC_2_INVALID',
+ 'INTRINSIC_PREP_RERAISE_STAR',
+ ]
+
_specializations = {
"BINARY_OP": [
"BINARY_OP_ADD_FLOAT",