summaryrefslogtreecommitdiffstats
path: root/Include/opcode.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-12-15 10:30:09 (GMT)
committerGitHub <noreply@github.com>2021-12-15 10:30:09 (GMT)
commit0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e (patch)
tree307cc32e8ca72f71eaa8250e976306adc939e9fd /Include/opcode.h
parent86de99588db3beff964137f4fe27dd1077a09b35 (diff)
downloadcpython-0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e.zip
cpython-0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e.tar.gz
cpython-0b50a4f0cdee41a18fb4ba6e75569f9cfaceb39e.tar.bz2
bpo-46039: Split yield from in two (GH-30035)
* Split YIELD_FROM opcode into SEND and JUMP_ABSOLUTE. * Remove YIELD_FROM opcode.
Diffstat (limited to 'Include/opcode.h')
-rw-r--r--Include/opcode.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 4d14081..bdabffd 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -37,7 +37,6 @@ extern "C" {
#define GET_YIELD_FROM_ITER 69
#define PRINT_EXPR 70
#define LOAD_BUILD_CLASS 71
-#define YIELD_FROM 72
#define GET_AWAITABLE 73
#define LOAD_ASSERTION_ERROR 74
#define LIST_TO_TUPLE 82
@@ -81,6 +80,7 @@ extern "C" {
#define COPY 120
#define JUMP_IF_NOT_EXC_MATCH 121
#define BINARY_OP 122
+#define SEND 123
#define LOAD_FAST 124
#define STORE_FAST 125
#define DELETE_FAST 126
@@ -154,15 +154,15 @@ extern "C" {
#define LOAD_GLOBAL_BUILTIN 65
#define LOAD_METHOD_ADAPTIVE 66
#define LOAD_METHOD_CACHED 67
-#define LOAD_METHOD_CLASS 75
-#define LOAD_METHOD_MODULE 76
-#define LOAD_METHOD_NO_DICT 77
-#define STORE_ATTR_ADAPTIVE 78
-#define STORE_ATTR_INSTANCE_VALUE 79
-#define STORE_ATTR_SLOT 80
-#define STORE_ATTR_WITH_HINT 81
-#define LOAD_FAST__LOAD_FAST 87
-#define STORE_FAST__LOAD_FAST 123
+#define LOAD_METHOD_CLASS 72
+#define LOAD_METHOD_MODULE 75
+#define LOAD_METHOD_NO_DICT 76
+#define STORE_ATTR_ADAPTIVE 77
+#define STORE_ATTR_INSTANCE_VALUE 78
+#define STORE_ATTR_SLOT 79
+#define STORE_ATTR_WITH_HINT 80
+#define LOAD_FAST__LOAD_FAST 81
+#define STORE_FAST__LOAD_FAST 87
#define LOAD_FAST__LOAD_CONST 128
#define LOAD_CONST__LOAD_FAST 131
#define STORE_FAST__STORE_FAST 134
@@ -172,7 +172,7 @@ static uint32_t _PyOpcode_RelativeJump[8] = {
0U,
0U,
536870912U,
- 16384U,
+ 134234112U,
0U,
0U,
0U,
@@ -182,7 +182,7 @@ static uint32_t _PyOpcode_Jump[8] = {
0U,
0U,
536870912U,
- 2182070272U,
+ 2316288000U,
0U,
0U,
0U,