summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-02-28 12:56:29 (GMT)
committerGitHub <noreply@github.com>2022-02-28 12:56:29 (GMT)
commit4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e (patch)
tree32365218607a600a23378350b533a307474cb628 /Python/compile.c
parentda7d99a4de72aac8d436cecedf16ab2676f9b785 (diff)
downloadcpython-4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e.zip
cpython-4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e.tar.gz
cpython-4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e.tar.bz2
bpo-46841: Move the cache for `LOAD_GLOBAL` inline. (GH-31575)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 8ae4d44..ea9c3c8 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -31,7 +31,7 @@
#include "pycore_long.h" // _PyLong_GetZero()
#include "pycore_symtable.h" // PySTEntryObject
-#define NEED_OPCODE_JUMP_TABLES
+#define NEED_OPCODE_TABLES
#include "opcode.h" // EXTENDED_ARG
@@ -108,7 +108,7 @@ typedef struct exceptstack {
#define MASK_LOW_LOG_BITS 31
static inline int
-is_bit_set_in_table(uint32_t *table, int bitindex) {
+is_bit_set_in_table(const uint32_t *table, int bitindex) {
/* Is the relevant bit set in the relevant word? */
/* 256 bits fit into 8 32-bits words.
* Word is indexed by (bitindex>>ln(size of int in bits)).