Skip to content

Commit dfaba30

Browse files
committed
Add missing #includes
1 parent 6b3bbf1 commit dfaba30

File tree

7 files changed

+10
-2
lines changed

7 files changed

+10
-2
lines changed

Modules/_testinternalcapi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "pycore_instruction_sequence.h" // _PyInstructionSequence_New()
2929
#include "pycore_interpframe.h" // _PyFrame_GetFunction()
3030
#include "pycore_object.h" // _PyObject_IsFreed()
31+
#include "pycore_optimizer.h" // _Py_Executor_DependsOn
3132
#include "pycore_pathconfig.h" // _PyPathConfig_ClearGlobal()
3233
#include "pycore_pyerrors.h" // _PyErr_ChainExceptions1()
3334
#include "pycore_pylifecycle.h" // _PyInterpreterConfig_InitFromDict()

Python/optimizer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@
66
#include "pycore_interp.h"
77
#include "pycore_backoff.h"
88
#include "pycore_bitutils.h" // _Py_popcount32()
9+
#include "pycore_code.h" // _Py_GetBaseCodeUnit
10+
#include "pycore_interpframe.h"
911
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
1012
#include "pycore_opcode_metadata.h" // _PyOpcode_OpName[]
1113
#include "pycore_opcode_utils.h" // MAX_REAL_OPCODE
1214
#include "pycore_optimizer.h" // _Py_uop_analyze_and_optimize()
1315
#include "pycore_pystate.h" // _PyInterpreterState_GET()
16+
#include "pycore_tuple.h" // _PyTuple_FromArraySteal
17+
#include "pycore_unicodeobject.h" // _PyUnicode_FromASCII
1418
#include "pycore_uop_ids.h"
1519
#include "pycore_jit.h"
1620
#include <stdbool.h>

Python/optimizer_analysis.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "pycore_uop_metadata.h"
2222
#include "pycore_dict.h"
2323
#include "pycore_long.h"
24+
#include "pycore_interpframe.h" // _PyFrame_GetCode
2425
#include "pycore_optimizer.h"
2526
#include "pycore_object.h"
2627
#include "pycore_dict.h"

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ dummy_func(void) {
552552
null[0] = sym_new_null(ctx);
553553
}
554554
else {
555-
REPLACE_OP(this_instr, _NOP);
555+
REPLACE_OP(this_instr, _NOP, 0, 0);
556556
}
557557
}
558558

Python/optimizer_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/optimizer_symbols.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "pycore_frame.h"
77
#include "pycore_long.h"
88
#include "pycore_optimizer.h"
9+
#include "pycore_stats.h"
910
#include "pycore_tuple.h" // _PyTuple_FromArray()
1011

1112
#include <stdbool.h>

Python/pylifecycle.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "pycore_long.h" // _PyLong_InitTypes()
1919
#include "pycore_object.h" // _PyDebug_PrintTotalRefs()
2020
#include "pycore_obmalloc.h" // _PyMem_init_obmalloc()
21+
#include "pycore_optimizer.h" // _Py_Executors_InvalidateAll
2122
#include "pycore_pathconfig.h" // _PyPathConfig_UpdateGlobal()
2223
#include "pycore_pyerrors.h" // _PyErr_Occurred()
2324
#include "pycore_pylifecycle.h" // _PyErr_Print()

0 commit comments

Comments
 (0)