File tree Expand file tree Collapse file tree 3 files changed +11
-29
lines changed Expand file tree Collapse file tree 3 files changed +11
-29
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ extern "C" {
12
12
#include "pycore_freelist_state.h" // struct _Py_freelists
13
13
#include "pycore_mimalloc.h" // struct _mimalloc_thread_state
14
14
#include "pycore_qsbr.h" // struct qsbr
15
+ #include "pycore_uop.h" // struct _PyUOpInstruction
15
16
16
17
17
18
#ifdef Py_GIL_DISABLED
@@ -21,35 +22,6 @@ struct _gc_thread_state {
21
22
};
22
23
#endif
23
24
24
- /* Depending on the format,
25
- * the 32 bits between the oparg and operand are:
26
- * UOP_FORMAT_TARGET:
27
- * uint32_t target;
28
- * UOP_FORMAT_JUMP
29
- * uint16_t jump_target;
30
- * uint16_t error_target;
31
- */
32
- typedef struct _PyUOpInstruction {
33
- uint16_t opcode :15 ;
34
- uint16_t format :1 ;
35
- uint16_t oparg ;
36
- union {
37
- uint32_t target ;
38
- struct {
39
- uint16_t jump_target ;
40
- uint16_t error_target ;
41
- };
42
- };
43
- uint64_t operand0 ; // A cache entry
44
- uint64_t operand1 ;
45
- #ifdef Py_STATS
46
- uint64_t execution_count ;
47
- #endif
48
- } _PyUOpInstruction ;
49
-
50
- // This is the length of the trace we project initially.
51
- #define UOP_MAX_TRACE_LENGTH 1200
52
-
53
25
54
26
// Every PyThreadState is actually allocated as a _PyThreadStateImpl. The
55
27
// PyThreadState fields are exposed as part of the C API, although most fields
Original file line number Diff line number Diff line change @@ -1435,6 +1435,7 @@ PYTHON_HEADERS= \
1435
1435
$(srcdir)/Include/internal/pycore_unicodeobject_generated.h \
1436
1436
$(srcdir)/Include/internal/pycore_unionobject.h \
1437
1437
$(srcdir)/Include/internal/pycore_uniqueid.h \
1438
+ $(srcdir)/Include/internal/pycore_uop.h \
1438
1439
$(srcdir)/Include/internal/pycore_uop_ids.h \
1439
1440
$(srcdir)/Include/internal/pycore_uop_metadata.h \
1440
1441
$(srcdir)/Include/internal/pycore_warnings.h \
Original file line number Diff line number Diff line change 882
882
<ClInclude Include =" ..\Include\internal\pycore_uniqueid.h" >
883
883
<Filter >Include\internal</Filter >
884
884
</ClInclude >
885
+ <ClInclude Include =" ..\Include\internal\pycore_uop.h" >
886
+ <Filter >Include\internal</Filter >
887
+ </ClInclude >
888
+ <ClInclude Include =" ..\Include\internal\pycore_uop_ids.h" >
889
+ <Filter >Include\internal</Filter >
890
+ </ClInclude >
891
+ <ClInclude Include =" ..\Include\internal\pycore_uop_metadata.h" >
892
+ <Filter >Include\internal</Filter >
893
+ </ClInclude >
885
894
<ClInclude Include =" ..\Include\internal\mimalloc\mimalloc.h" >
886
895
<Filter >Include\internal\mimalloc</Filter >
887
896
</ClInclude >
You can’t perform that action at this time.
0 commit comments