Skip to content

Commit 377d455

Browse files
fix merge problems
1 parent ad09171 commit 377d455

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ typedef struct _JitOptContext {
4141
// Arena for the symbolic types.
4242
ty_arena t_arena;
4343

44+
// Pool to store promoted constants to be used at runtime.
45+
PyObject *constant_pool;
46+
4447
/* To do -- We could make this more space efficient
4548
* by using a single array and growing the stack and
4649
* locals toward each other. */

Python/optimizer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ insert_executor(PyCodeObject *code, _Py_CODEUNIT *instr, int index, _PyExecutorO
115115

116116
static _PyExecutorObject *
117117
make_executor_from_uops(_PyThreadStateImpl *tstate, _PyUOpInstruction *buffer,
118-
int length, const _PyBloomFilter *dependencies, PyObject **constant_pool_ptr);
118+
int length, const _PyBloomFilter *dependencies, PyObject *constant_pool);
119119

120120
static int
121121
uop_optimize(_PyInterpreterFrame *frame, PyThreadState *tstate,
@@ -1378,7 +1378,7 @@ sanity_check(_PyExecutorObject *executor)
13781378
*/
13791379
static _PyExecutorObject *
13801380
make_executor_from_uops(_PyThreadStateImpl *tstate, _PyUOpInstruction *buffer,
1381-
int length, const _PyBloomFilter *dependencies, PyObject **constant_pool_ptr)
1381+
int length, const _PyBloomFilter *dependencies, PyObject *constant_pool)
13821382
{
13831383
int exit_count = count_exits(buffer, length);
13841384
_PyExecutorObject *executor = allocate_executor(exit_count, length, constant_pool);

0 commit comments

Comments
 (0)