|
1 | 1 | /* Frame object implementation */ |
2 | 2 |
|
3 | 3 | #include "Python.h" |
| 4 | +#include "pycore_cell.h" // PyCell_GetRef() |
4 | 5 | #include "pycore_ceval.h" // _PyEval_SetOpcodeTrace() |
5 | | -#include "pycore_code.h" // CO_FAST_LOCAL, etc. |
| 6 | +#include "pycore_code.h" // CO_FAST_LOCAL |
6 | 7 | #include "pycore_dict.h" // _PyDict_LoadBuiltinsFromGlobals() |
| 8 | +#include "pycore_frame.h" // PyFrameObject |
7 | 9 | #include "pycore_function.h" // _PyFunction_FromConstructor() |
8 | 10 | #include "pycore_genobject.h" // _PyGen_GetGeneratorFromFrame() |
9 | | -#include "pycore_moduleobject.h" // _PyModule_GetDict() |
10 | | -#include "pycore_cell.h" // PyCell_GetRef() PyCell_SetTakeRef() |
| 11 | +#include "pycore_interpframe.h" // _PyFrame_GetLocalsArray() |
11 | 12 | #include "pycore_modsupport.h" // _PyArg_CheckPositional() |
12 | 13 | #include "pycore_object.h" // _PyObject_GC_UNTRACK() |
13 | | -#include "pycore_opcode_metadata.h" // _PyOpcode_Deopt, _PyOpcode_Caches |
| 14 | +#include "pycore_opcode_metadata.h" // _PyOpcode_Caches |
14 | 15 | #include "pycore_optimizer.h" // _Py_Executors_InvalidateDependency() |
15 | 16 | #include "pycore_unicodeobject.h" // _PyUnicode_Equal() |
16 | 17 |
|
17 | | - |
18 | | -#include "frameobject.h" // PyFrameObject |
19 | | -#include "pycore_frame.h" |
| 18 | +#include "frameobject.h" // PyFrameLocalsProxyObject |
20 | 19 | #include "opcode.h" // EXTENDED_ARG |
21 | 20 |
|
22 | 21 | #include "clinic/frameobject.c.h" |
23 | 22 |
|
| 23 | + |
24 | 24 | #define PyFrameObject_CAST(op) \ |
25 | 25 | (assert(PyObject_TypeCheck((op), &PyFrame_Type)), (PyFrameObject *)(op)) |
26 | 26 |
|
|
0 commit comments