mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-91276: remove unused _PyOpcode_RelativeJump (#103156)
This commit is contained in:
parent
33822d037a
commit
21bea68e2e
4 changed files with 12 additions and 42 deletions
13
Include/internal/pycore_opcode.h
generated
13
Include/internal/pycore_opcode.h
generated
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue