summaryrefslogtreecommitdiffstats
path: root/Include/opcode.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-04-05 11:06:22 (GMT)
committerGitHub <noreply@github.com>2022-04-05 11:06:22 (GMT)
commit32091df41ce6e3a71df2cf37dc74b728c0d885f2 (patch)
tree0504c15f15a9ba83d08e480cc33a801cc648681d /Include/opcode.h
parent6c6e0408a663c1f53dad403f54a18d444da39cb7 (diff)
downloadcpython-32091df41ce6e3a71df2cf37dc74b728c0d885f2.zip
cpython-32091df41ce6e3a71df2cf37dc74b728c0d885f2.tar.gz
cpython-32091df41ce6e3a71df2cf37dc74b728c0d885f2.tar.bz2
bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309)
Diffstat (limited to 'Include/opcode.h')
-rw-r--r--Include/opcode.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index c82d1fd..fd49dfe 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -22,6 +22,7 @@ extern "C" {
#define MATCH_KEYS 33
#define PUSH_EXC_INFO 35
#define CHECK_EXC_MATCH 36
+#define CHECK_EG_MATCH 37
#define WITH_EXCEPT_START 49
#define GET_AITER 50
#define GET_ANEXT 51
@@ -80,7 +81,6 @@ extern "C" {
#define LOAD_FAST 124
#define STORE_FAST 125
#define DELETE_FAST 126
-#define JUMP_IF_NOT_EG_MATCH 127
#define POP_JUMP_IF_NOT_NONE 128
#define POP_JUMP_IF_NONE 129
#define RAISE_VARARGS 130
@@ -136,39 +136,39 @@ extern "C" {
#define COMPARE_OP_INT_JUMP 28
#define COMPARE_OP_STR_JUMP 29
#define JUMP_BACKWARD_QUICK 34
-#define LOAD_ATTR_ADAPTIVE 37
-#define LOAD_ATTR_INSTANCE_VALUE 38
-#define LOAD_ATTR_MODULE 39
-#define LOAD_ATTR_SLOT 40
-#define LOAD_ATTR_WITH_HINT 41
-#define LOAD_CONST__LOAD_FAST 42
-#define LOAD_FAST__LOAD_CONST 43
-#define LOAD_FAST__LOAD_FAST 44
-#define LOAD_GLOBAL_ADAPTIVE 45
-#define LOAD_GLOBAL_BUILTIN 46
-#define LOAD_GLOBAL_MODULE 47
-#define LOAD_METHOD_ADAPTIVE 48
-#define LOAD_METHOD_CLASS 55
-#define LOAD_METHOD_MODULE 56
-#define LOAD_METHOD_NO_DICT 57
-#define LOAD_METHOD_WITH_DICT 58
-#define LOAD_METHOD_WITH_VALUES 59
-#define PRECALL_ADAPTIVE 62
-#define PRECALL_BOUND_METHOD 63
-#define PRECALL_BUILTIN_CLASS 64
-#define PRECALL_BUILTIN_FAST_WITH_KEYWORDS 65
-#define PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS 66
-#define PRECALL_NO_KW_BUILTIN_FAST 67
-#define PRECALL_NO_KW_BUILTIN_O 72
-#define PRECALL_NO_KW_ISINSTANCE 73
-#define PRECALL_NO_KW_LEN 76
-#define PRECALL_NO_KW_LIST_APPEND 77
-#define PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST 78
-#define PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS 79
-#define PRECALL_NO_KW_METHOD_DESCRIPTOR_O 80
-#define PRECALL_NO_KW_STR_1 81
-#define PRECALL_NO_KW_TUPLE_1 113
-#define PRECALL_NO_KW_TYPE_1 121
+#define LOAD_ATTR_ADAPTIVE 38
+#define LOAD_ATTR_INSTANCE_VALUE 39
+#define LOAD_ATTR_MODULE 40
+#define LOAD_ATTR_SLOT 41
+#define LOAD_ATTR_WITH_HINT 42
+#define LOAD_CONST__LOAD_FAST 43
+#define LOAD_FAST__LOAD_CONST 44
+#define LOAD_FAST__LOAD_FAST 45
+#define LOAD_GLOBAL_ADAPTIVE 46
+#define LOAD_GLOBAL_BUILTIN 47
+#define LOAD_GLOBAL_MODULE 48
+#define LOAD_METHOD_ADAPTIVE 55
+#define LOAD_METHOD_CLASS 56
+#define LOAD_METHOD_MODULE 57
+#define LOAD_METHOD_NO_DICT 58
+#define LOAD_METHOD_WITH_DICT 59
+#define LOAD_METHOD_WITH_VALUES 62
+#define PRECALL_ADAPTIVE 63
+#define PRECALL_BOUND_METHOD 64
+#define PRECALL_BUILTIN_CLASS 65
+#define PRECALL_BUILTIN_FAST_WITH_KEYWORDS 66
+#define PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS 67
+#define PRECALL_NO_KW_BUILTIN_FAST 72
+#define PRECALL_NO_KW_BUILTIN_O 73
+#define PRECALL_NO_KW_ISINSTANCE 76
+#define PRECALL_NO_KW_LEN 77
+#define PRECALL_NO_KW_LIST_APPEND 78
+#define PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST 79
+#define PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS 80
+#define PRECALL_NO_KW_METHOD_DESCRIPTOR_O 81
+#define PRECALL_NO_KW_STR_1 113
+#define PRECALL_NO_KW_TUPLE_1 121
+#define PRECALL_NO_KW_TYPE_1 127
#define PRECALL_PYFUNC 141
#define RESUME_QUICK 143
#define STORE_ATTR_ADAPTIVE 150
@@ -205,7 +205,7 @@ static const uint32_t _PyOpcode_Jump[8] = {
0U,
0U,
536870912U,
- 2282602496U,
+ 135118848U,
4163U,
0U,
0U,
@@ -259,6 +259,7 @@ const uint8_t _PyOpcode_Deopt[256] = {
[CALL_FUNCTION_EX] = CALL_FUNCTION_EX,
[CALL_PY_EXACT_ARGS] = CALL,
[CALL_PY_WITH_DEFAULTS] = CALL,
+ [CHECK_EG_MATCH] = CHECK_EG_MATCH,
[CHECK_EXC_MATCH] = CHECK_EXC_MATCH,
[COMPARE_OP] = COMPARE_OP,
[COMPARE_OP_ADAPTIVE] = COMPARE_OP,
@@ -294,7 +295,6 @@ const uint8_t _PyOpcode_Deopt[256] = {
[JUMP_BACKWARD_QUICK] = JUMP_BACKWARD,
[JUMP_FORWARD] = JUMP_FORWARD,
[JUMP_IF_FALSE_OR_POP] = JUMP_IF_FALSE_OR_POP,
- [JUMP_IF_NOT_EG_MATCH] = JUMP_IF_NOT_EG_MATCH,
[JUMP_IF_TRUE_OR_POP] = JUMP_IF_TRUE_OR_POP,
[JUMP_NO_INTERRUPT] = JUMP_NO_INTERRUPT,
[KW_NAMES] = KW_NAMES,