File tree Expand file tree Collapse file tree 3 files changed +1
-26
lines changed Expand file tree Collapse file tree 3 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ typedef uint16_t _Py_CODEUNIT;
23
23
# define _Py_MAKECODEUNIT (opcode , oparg ) ((opcode)|((oparg)<<8))
24
24
#endif
25
25
26
- typedef struct _PyOpcache _PyOpcache ;
27
-
28
26
29
27
/* Bytecode object */
30
28
struct PyCodeObject {
Original file line number Diff line number Diff line change 4
4
extern "C" {
5
5
#endif
6
6
7
- /* Legacy Opcache */
8
-
9
- typedef struct {
10
- PyObject * ptr ; /* Cached pointer (borrowed reference) */
11
- uint64_t globals_ver ; /* ma_version of global dict */
12
- uint64_t builtins_ver ; /* ma_version of builtin dict */
13
- } _PyOpcache_LoadGlobal ;
14
-
15
- typedef struct {
16
- PyTypeObject * type ;
17
- Py_ssize_t hint ;
18
- unsigned int tp_version_tag ;
19
- } _PyOpCodeOpt_LoadAttr ;
20
-
21
- struct _PyOpcache {
22
- union {
23
- _PyOpcache_LoadGlobal lg ;
24
- _PyOpCodeOpt_LoadAttr la ;
25
- } u ;
26
- char optimized ;
27
- };
28
-
29
-
30
7
/* PEP 659
31
8
* Specialization and quickening structs and helper functions
32
9
*/
Original file line number Diff line number Diff line change 4
4
#include "code.h"
5
5
#include "opcode.h"
6
6
#include "structmember.h" // PyMemberDef
7
- #include "pycore_code.h" // _PyOpcache
7
+ #include "pycore_code.h" // _PyCodeConstructor
8
8
#include "pycore_interp.h" // PyInterpreterState.co_extra_freefuncs
9
9
#include "pycore_pystate.h" // _PyInterpreterState_GET()
10
10
#include "pycore_tuple.h" // _PyTuple_ITEMS()
You can’t perform that action at this time.
0 commit comments