| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 34c1ea3 commit b69da00
27 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,9 +8,8 @@ extern "C" { | |||
| 8 | 8 | # error "this header requires Py_BUILD_CORE define" | |
| 9 | 9 | #endif | |
| 10 | 10 | ||
| 11 | - #include "pycore_structs.h" // _Py_CODEUNIT | ||
| 12 | - #include "pycore_stackref.h" // _PyStackRef | ||
| 13 | 11 | #include "pycore_backoff.h" // _Py_BackoffCounter | |
| 12 | + #include "pycore_structs.h" // _Py_CODEUNIT | ||
| 14 | 13 | #include "pycore_tstate.h" // _PyThreadStateImpl | |
| 15 | 14 | ||
| 16 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,8 @@ extern "C" { | |||
| 9 | 9 | #endif | |
| 10 | 10 | ||
| 11 | 11 | #include "pycore_freelist_state.h" // struct _Py_freelists | |
| 12 | - #include "pycore_object.h" // _PyObject_IS_GC | ||
| 12 | + #include "pycore_interp_structs.h" // PyInterpreterState | ||
| 13 | + #include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_STORE_PTR_RELAXED() | ||
| 13 | 14 | #include "pycore_pystate.h" // _PyThreadState_GET | |
| 14 | 15 | #include "pycore_stats.h" // OBJECT_STAT_INC | |
| 15 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ extern "C" { | |||
| 8 | 8 | # error "this header requires Py_BUILD_CORE define" | |
| 9 | 9 | #endif | |
| 10 | 10 | ||
| 11 | - #include "pycore_genobject.h" // _PyGen_FetchStopIterationValue | ||
| 11 | + #include "pycore_interp_structs.h" // PyInterpreterState | ||
| 12 | 12 | ||
| 13 | 13 | ||
| 14 | 14 | /* interpreter state */ | |
@@ -27,7 +27,6 @@ extern "C" { | |||
| 27 | 27 | ||
| 28 | 28 | extern void _PyInterpreterState_Clear(PyThreadState *tstate); | |
| 29 | 29 | ||
| 30 | - | ||
| 31 | 30 | static inline PyThreadState* | |
| 32 | 31 | _PyInterpreterState_GetFinalizing(PyInterpreterState *interp) { | |
| 33 | 32 | return (PyThreadState*)_Py_atomic_load_ptr_relaxed(&interp->_finalizing); | |
@@ -53,7 +52,6 @@ _PyInterpreterState_SetFinalizing(PyInterpreterState *interp, PyThreadState *tst | |||
| 53 | 52 | } | |
| 54 | 53 | ||
| 55 | 54 | ||
| 56 | - | ||
| 57 | 55 | // Exports for the _testinternalcapi module. | |
| 58 | 56 | PyAPI_FUNC(int64_t) _PyInterpreterState_ObjectToID(PyObject *); | |
| 59 | 57 | PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpID(int64_t); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,16 +6,14 @@ | |||
| 6 | 6 | #endif | |
| 7 | 7 | ||
| 8 | 8 | #include "Python.h" | |
| 9 | - #include "pycore_abstract.h" // _PyIndex_Check() | ||
| 9 | + #include "pycore_code.h" // _PyCode_HAS_EXECUTORS() | ||
| 10 | 10 | #include "pycore_crossinterp.h" // _PyXIData_t | |
| 11 | 11 | #include "pycore_interp.h" // _PyInterpreterState_IDIncref() | |
| 12 | - #include "pycore_initconfig.h" // _PyErr_SetFromPyStatus() | ||
| 13 | 12 | #include "pycore_modsupport.h" // _PyArg_BadArgument() | |
| 14 | 13 | #include "pycore_namespace.h" // _PyNamespace_New() | |
| 15 | 14 | #include "pycore_pybuffer.h" // _PyBuffer_ReleaseInInterpreterAndRawFree() | |
| 16 | - #include "pycore_pyerrors.h" // _Py_excinfo | ||
| 17 | 15 | #include "pycore_pylifecycle.h" // _PyInterpreterConfig_AsDict() | |
| 18 | - #include "pycore_pystate.h" // _PyInterpreterState_SetRunningMain() | ||
| 16 | + #include "pycore_pystate.h" // _PyInterpreterState_IsRunningMain() | ||
| 19 | 17 | ||
| 20 | 18 | #include "marshal.h" // PyMarshal_ReadObjectFromString() | |
| 21 | 19 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | #include "pycore_ceval.h" // _PyEval_SetProfile() | |
| 8 | 8 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| 9 | 9 | #include "pycore_time.h" // _PyTime_FromLong() | |
| 10 | + #include "pycore_typeobject.h" // _PyType_GetModuleState() | ||
| 10 | 11 | #include "pycore_unicodeobject.h" // _PyUnicode_EqualToASCIIString() | |
| 11 | 12 | ||
| 12 | 13 | #include "rotatingtree.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,9 +6,9 @@ | |||
| 6 | 6 | #include "clinic/watchers.c.h" | |
| 7 | 7 | ||
| 8 | 8 | #define Py_BUILD_CORE | |
| 9 | - #include "pycore_function.h" // FUNC_MAX_WATCHERS | ||
| 10 | - #include "pycore_code.h" // CODE_MAX_WATCHERS | ||
| 11 | - #include "pycore_context.h" // CONTEXT_MAX_WATCHERS | ||
| 9 | + #include "pycore_function.h" // FUNC_MAX_WATCHERS | ||
| 10 | + #include "pycore_interp_structs.h" // CODE_MAX_WATCHERS | ||
| 11 | + #include "pycore_context.h" // CONTEXT_MAX_WATCHERS | ||
| 12 | 12 | ||
| 13 | 13 | /*[clinic input] | |
| 14 | 14 | module _testcapi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ | |||
| 17 | 17 | #include "pycore_code.h" // _PyCode_GetTLBCFast() | |
| 18 | 18 | #include "pycore_compile.h" // _PyCompile_CodeGen() | |
| 19 | 19 | #include "pycore_context.h" // _PyContext_NewHamtForTests() | |
| 20 | - #include "pycore_dict.h" // _PyManagedDictPointer_GetValues() | ||
| 20 | + #include "pycore_dict.h" // PyDictValues | ||
| 21 | 21 | #include "pycore_fileutils.h" // _Py_normpath() | |
| 22 | 22 | #include "pycore_flowgraph.h" // _PyCompile_OptimizeCfg() | |
| 23 | 23 | #include "pycore_frame.h" // _PyInterpreterFrame | |
@@ -26,11 +26,11 @@ | |||
| 26 | 26 | #include "pycore_import.h" // _PyImport_ClearExtension() | |
| 27 | 27 | #include "pycore_initconfig.h" // _Py_GetConfigsAsDict() | |
| 28 | 28 | #include "pycore_instruction_sequence.h" // _PyInstructionSequence_New() | |
| 29 | + #include "pycore_interpframe.h" // _PyFrame_GetFunction() | ||
| 29 | 30 | #include "pycore_object.h" // _PyObject_IsFreed() | |
| 30 | - #include "pycore_optimizer.h" // JitOptSymbol, etc. | ||
| 31 | 31 | #include "pycore_pathconfig.h" // _PyPathConfig_ClearGlobal() | |
| 32 | 32 | #include "pycore_pyerrors.h" // _PyErr_ChainExceptions1() | |
| 33 | - #include "pycore_pylifecycle.h" // _PyInterpreterConfig_AsDict() | ||
| 33 | + #include "pycore_pylifecycle.h" // _PyInterpreterConfig_InitFromDict() | ||
| 34 | 34 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| 35 | 35 | #include "pycore_unicodeobject.h" // _PyUnicode_TransformDecimalAndSpaceToASCII() | |
| 36 | 36 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ | |||
| 8 | 8 | #include "pycore_ceval.h" // _PyEval_SignalReceived() | |
| 9 | 9 | #include "pycore_emscripten_signal.h" // _Py_CHECK_EMSCRIPTEN_SIGNALS | |
| 10 | 10 | #include "pycore_fileutils.h" // _Py_BEGIN_SUPPRESS_IPH | |
| 11 | - #include "pycore_frame.h" // _PyInterpreterFrame | ||
| 11 | + #include "pycore_interpframe.h" // _PyThreadState_GetFrame() | ||
| 12 | 12 | #include "pycore_moduleobject.h" // _PyModule_GetState() | |
| 13 | 13 | #include "pycore_pyerrors.h" // _PyErr_SetString() | |
| 14 | 14 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,10 +5,11 @@ | |||
| 5 | 5 | #include "pycore_call.h" // _PyObject_CallNoArgs() | |
| 6 | 6 | #include "pycore_ceval.h" // _Py_EnterRecursiveCallTstate() | |
| 7 | 7 | #include "pycore_crossinterp.h" // _Py_CallInInterpreter() | |
| 8 | + #include "pycore_genobject.h" // _PyGen_FetchStopIterationValue() | ||
| 8 | 9 | #include "pycore_list.h" // _PyList_AppendTakeRef() | |
| 9 | - #include "pycore_long.h" // _Py_IsNegative | ||
| 10 | + #include "pycore_long.h" // _PyLong_IsNegative() | ||
| 10 | 11 | #include "pycore_object.h" // _Py_CheckSlotResult() | |
| 11 | - #include "pycore_pybuffer.h" | ||
| 12 | + #include "pycore_pybuffer.h" // _PyBuffer_ReleaseInInterpreterAndRawFree() | ||
| 12 | 13 | #include "pycore_pyerrors.h" // _PyErr_Occurred() | |
| 13 | 14 | #include "pycore_pystate.h" // _PyThreadState_GET() | |
| 14 | 15 | #include "pycore_tuple.h" // _PyTuple_FromArraySteal() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,16 +2,14 @@ | |||
| 2 | 2 | #include "opcode.h" | |
| 3 | 3 | ||
| 4 | 4 | #include "pycore_code.h" // _PyCodeConstructor | |
| 5 | - #include "pycore_frame.h" // FRAME_SPECIALS_SIZE | ||
| 6 | 5 | #include "pycore_hashtable.h" // _Py_hashtable_t | |
| 7 | - #include "pycore_index_pool.h" // _PyIndexPool | ||
| 6 | + #include "pycore_index_pool.h" // _PyIndexPool_Fini() | ||
| 8 | 7 | #include "pycore_initconfig.h" // _PyStatus_OK() | |
| 9 | 8 | #include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs | |
| 10 | - #include "pycore_object.h" // _PyObject_SetDeferredRefcount | ||
| 11 | - #include "pycore_object_stack.h" | ||
| 12 | - #include "pycore_opcode_metadata.h" // _PyOpcode_Deopt, _PyOpcode_Caches | ||
| 9 | + #include "pycore_interpframe.h" // FRAME_SPECIALS_SIZE | ||
| 10 | + #include "pycore_opcode_metadata.h" // _PyOpcode_Caches | ||
| 13 | 11 | #include "pycore_opcode_utils.h" // RESUME_AT_FUNC_START | |
| 14 | - #include "pycore_pymem.h" // _PyMem_FreeDelayed | ||
| 12 | + #include "pycore_pymem.h" // _PyMem_FreeDelayed() | ||
| 15 | 13 | #include "pycore_pystate.h" // _PyInterpreterState_GET() | |
| 16 | 14 | #include "pycore_setobject.h" // _PySet_NextEntry() | |
| 17 | 15 | #include "pycore_tuple.h" // _PyTuple_ITEMS() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments