]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-131238: Add missing pycore_function.h includes for JIT compiler (#131571)
authorVictor Stinner <vstinner@python.org>
Fri, 21 Mar 2025 23:37:49 +0000 (00:37 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Mar 2025 23:37:49 +0000 (23:37 +0000)
Python/jit.c
Python/optimizer.c
Tools/jit/template.c

index 1f4873ee63a88f19211140eae0c5bcb8023ca505..8a91d2f62a4627bb2ae53454090f280a5487d852 100644 (file)
@@ -10,6 +10,7 @@
 #include "pycore_dict.h"
 #include "pycore_floatobject.h"
 #include "pycore_frame.h"
+#include "pycore_function.h"
 #include "pycore_interpframe.h"
 #include "pycore_intrinsics.h"
 #include "pycore_list.h"
index e2fe0f6cff7464edca7564903254711291cae1af..8e9d225bf38caf7af2219604c5654f6cd969a708 100644 (file)
@@ -7,6 +7,7 @@
 #include "pycore_backoff.h"
 #include "pycore_bitutils.h"        // _Py_popcount32()
 #include "pycore_code.h"            // _Py_GetBaseCodeUnit
+#include "pycore_function.h"        // _PyFunction_LookupByVersion()
 #include "pycore_interpframe.h"
 #include "pycore_object.h"          // _PyObject_GC_UNTRACK()
 #include "pycore_opcode_metadata.h" // _PyOpcode_OpName[]
index adc08f3cc5f2a5af5749b52f953c24832fcdc46d..bc18e702eeaa3ba44042f765f8688b80363c1a4a 100644 (file)
@@ -2,13 +2,15 @@
 
 #include "pycore_backoff.h"
 #include "pycore_call.h"
-#include "pycore_ceval.h"
 #include "pycore_cell.h"
+#include "pycore_ceval.h"
 #include "pycore_code.h"
+#include "pycore_descrobject.h"
 #include "pycore_dict.h"
-#include "pycore_floatobject.h"
 #include "pycore_emscripten_signal.h"
+#include "pycore_floatobject.h"
 #include "pycore_frame.h"
+#include "pycore_function.h"
 #include "pycore_genobject.h"
 #include "pycore_interpframe.h"
 #include "pycore_intrinsics.h"
@@ -22,7 +24,6 @@
 #include "pycore_range.h"
 #include "pycore_setobject.h"
 #include "pycore_sliceobject.h"
-#include "pycore_descrobject.h"
 #include "pycore_stackref.h"
 #include "pycore_tuple.h"
 #include "pycore_unicodeobject.h"