diff options
author | Carl Meyer <carl@oddbird.net> | 2023-05-16 16:29:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 16:29:00 (GMT) |
commit | f40890b124a330b589c8093127be1274e15dbd7f (patch) | |
tree | a6a68ed80a4103ff60b33375c17e4fa1dc40bc6d /Include | |
parent | febcc6ccfb0726dab588e64b68d91abb37db1939 (diff) | |
download | cpython-f40890b124a330b589c8093127be1274e15dbd7f.zip cpython-f40890b124a330b589c8093127be1274e15dbd7f.tar.gz cpython-f40890b124a330b589c8093127be1274e15dbd7f.tar.bz2 |
gh-103865: add monitoring support to LOAD_SUPER_ATTR (#103866)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_opcode.h | 4 | ||||
-rw-r--r-- | Include/opcode.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Include/internal/pycore_opcode.h b/Include/internal/pycore_opcode.h index c2fa569..15d9650 100644 --- a/Include/internal/pycore_opcode.h +++ b/Include/internal/pycore_opcode.h @@ -138,6 +138,7 @@ const uint8_t _PyOpcode_Deopt[256] = { [INSTRUMENTED_JUMP_BACKWARD] = INSTRUMENTED_JUMP_BACKWARD, [INSTRUMENTED_JUMP_FORWARD] = INSTRUMENTED_JUMP_FORWARD, [INSTRUMENTED_LINE] = INSTRUMENTED_LINE, + [INSTRUMENTED_LOAD_SUPER_ATTR] = INSTRUMENTED_LOAD_SUPER_ATTR, [INSTRUMENTED_POP_JUMP_IF_FALSE] = INSTRUMENTED_POP_JUMP_IF_FALSE, [INSTRUMENTED_POP_JUMP_IF_NONE] = INSTRUMENTED_POP_JUMP_IF_NONE, [INSTRUMENTED_POP_JUMP_IF_NOT_NONE] = INSTRUMENTED_POP_JUMP_IF_NOT_NONE, @@ -481,7 +482,7 @@ static const char *const _PyOpcode_OpName[267] = { [234] = "<234>", [235] = "<235>", [236] = "<236>", - [237] = "<237>", + [INSTRUMENTED_LOAD_SUPER_ATTR] = "INSTRUMENTED_LOAD_SUPER_ATTR", [INSTRUMENTED_POP_JUMP_IF_NONE] = "INSTRUMENTED_POP_JUMP_IF_NONE", [INSTRUMENTED_POP_JUMP_IF_NOT_NONE] = "INSTRUMENTED_POP_JUMP_IF_NOT_NONE", [INSTRUMENTED_RESUME] = "INSTRUMENTED_RESUME", @@ -577,7 +578,6 @@ static const char *const _PyOpcode_OpName[267] = { case 234: \ case 235: \ case 236: \ - case 237: \ case 255: \ ; diff --git a/Include/opcode.h b/Include/opcode.h index dea7687..9806511 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -120,7 +120,8 @@ extern "C" { #define CALL_INTRINSIC_2 174 #define LOAD_FROM_DICT_OR_GLOBALS 175 #define LOAD_FROM_DICT_OR_DEREF 176 -#define MIN_INSTRUMENTED_OPCODE 238 +#define MIN_INSTRUMENTED_OPCODE 237 +#define INSTRUMENTED_LOAD_SUPER_ATTR 237 #define INSTRUMENTED_POP_JUMP_IF_NONE 238 #define INSTRUMENTED_POP_JUMP_IF_NOT_NONE 239 #define INSTRUMENTED_RESUME 240 |