extern "C" {
#endif
-/* Legacy Opcache */
-
-typedef struct {
- PyObject *ptr; /* Cached pointer (borrowed reference) */
- uint64_t globals_ver; /* ma_version of global dict */
- uint64_t builtins_ver; /* ma_version of builtin dict */
-} _PyOpcache_LoadGlobal;
-
-typedef struct {
- PyTypeObject *type;
- Py_ssize_t hint;
- unsigned int tp_version_tag;
-} _PyOpCodeOpt_LoadAttr;
-
-struct _PyOpcache {
- union {
- _PyOpcache_LoadGlobal lg;
- _PyOpCodeOpt_LoadAttr la;
- } u;
- char optimized;
-};
-
-
/* PEP 659
* Specialization and quickening structs and helper functions
*/
#include "code.h"
#include "opcode.h"
#include "structmember.h" // PyMemberDef
-#include "pycore_code.h" // _PyOpcache
+#include "pycore_code.h" // _PyCodeConstructor
#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs
#include "pycore_pystate.h" // _PyInterpreterState_GET()
#include "pycore_tuple.h" // _PyTuple_ITEMS()