gh-91276: remove unused _PyOpcode_RelativeJump (#103156)

This commit is contained in:
Irit Katriel 2023-04-11 11:20:39 +01:00 committed by GitHub
parent 33822d037a
commit 21bea68e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 42 deletions

View file

@ -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,

View file

@ -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
}