summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorpenguin_wwy <940375606@qq.com>2022-01-06 11:38:35 (GMT)
committerGitHub <noreply@github.com>2022-01-06 11:38:35 (GMT)
commit3db762db72cc0da938614b1e414abb1e12ca4094 (patch)
treeeef08b55d931522d2f83ed7b6f2383d27d8a4ffe /Include
parent35d6540c904ef07b8602ff014e520603f84b5886 (diff)
downloadcpython-3db762db72cc0da938614b1e414abb1e12ca4094.zip
cpython-3db762db72cc0da938614b1e414abb1e12ca4094.tar.gz
cpython-3db762db72cc0da938614b1e414abb1e12ca4094.tar.bz2
bpo-46031: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE (GH-30019)
Diffstat (limited to 'Include')
-rw-r--r--Include/opcode.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 1af5494..e4deeec 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -84,6 +84,8 @@ extern "C" {
#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
#define MAKE_FUNCTION 132
#define BUILD_SLICE 133
@@ -162,10 +164,10 @@ extern "C" {
#define STORE_ATTR_SLOT 80
#define STORE_ATTR_WITH_HINT 81
#define LOAD_FAST__LOAD_FAST 87
-#define STORE_FAST__LOAD_FAST 128
-#define LOAD_FAST__LOAD_CONST 129
-#define LOAD_CONST__LOAD_FAST 131
-#define STORE_FAST__STORE_FAST 134
+#define STORE_FAST__LOAD_FAST 131
+#define LOAD_FAST__LOAD_CONST 134
+#define LOAD_CONST__LOAD_FAST 140
+#define STORE_FAST__STORE_FAST 141
#define DO_TRACING 255
#ifdef NEED_OPCODE_JUMP_TABLES
static uint32_t _PyOpcode_RelativeJump[8] = {
@@ -183,7 +185,7 @@ static uint32_t _PyOpcode_Jump[8] = {
0U,
536870912U,
2316288000U,
- 0U,
+ 3U,
0U,
0U,
0U,