summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-04-11 10:20:39 (GMT)
committerGitHub <noreply@github.com>2023-04-11 10:20:39 (GMT)
commit21bea68e2e97369d808db7d053d4b51b3bc761b9 (patch)
tree78ddcff7fbdce360a28f4b61d160144d3e2d0c80 /Include
parent33822d037a3381d239dcc532937138da6f3da669 (diff)
downloadcpython-21bea68e2e97369d808db7d053d4b51b3bc761b9.zip
cpython-21bea68e2e97369d808db7d053d4b51b3bc761b9.tar.gz
cpython-21bea68e2e97369d808db7d053d4b51b3bc761b9.tar.bz2
gh-91276: remove unused _PyOpcode_RelativeJump (#103156)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_opcode.h13
-rw-r--r--Include/internal/pycore_opcode_utils.h5
2 files changed, 1 insertions, 17 deletions
diff --git a/Include/internal/pycore_opcode.h b/Include/internal/pycore_opcode.h
index 81ca914..f5e9176 100644
--- a/Include/internal/pycore_opcode.h
+++ b/Include/internal/pycore_opcode.h
@@ -12,8 +12,6 @@ extern "C" {
#include "opcode.h"
-extern const uint32_t _PyOpcode_RelativeJump[9];
-
extern const uint32_t _PyOpcode_Jump[9];
extern const uint8_t _PyOpcode_Caches[256];
@@ -21,17 +19,6 @@ extern const uint8_t _PyOpcode_Caches[256];
extern const uint8_t _PyOpcode_Deopt[256];
#ifdef NEED_OPCODE_TABLES
-const uint32_t _PyOpcode_RelativeJump[9] = {
- 0U,
- 0U,
- 536870912U,
- 135020544U,
- 4163U,
- 0U,
- 0U,
- 0U,
- 48U,
-};
const uint32_t _PyOpcode_Jump[9] = {
0U,
0U,
diff --git a/Include/internal/pycore_opcode_utils.h b/Include/internal/pycore_opcode_utils.h
index 96bb4d7..1d5ff98 100644
--- a/Include/internal/pycore_opcode_utils.h
+++ b/Include/internal/pycore_opcode_utils.h
@@ -8,7 +8,7 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
-#include "pycore_opcode.h" // _PyOpcode_RelativeJump
+#include "pycore_opcode.h" // _PyOpcode_Jump
#define MAX_REAL_OPCODE 254
@@ -85,9 +85,6 @@ is_bit_set_in_table(const uint32_t *table, int bitindex) {
#undef LOG_BITS_PER_INT
#undef MASK_LOW_LOG_BITS
-#define IS_RELATIVE_JUMP(opcode) (is_bit_set_in_table(_PyOpcode_RelativeJump, opcode))
-
-
#ifdef __cplusplus
}