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" {
1212#include "pycore_freelist_state.h" // struct _Py_freelists
1313#include "pycore_mimalloc.h" // struct _mimalloc_thread_state
1414#include "pycore_qsbr.h" // struct qsbr
15+ #include "pycore_uop.h" // struct _PyUOpInstruction
1516
1617
1718#ifdef Py_GIL_DISABLED
@@ -21,35 +22,6 @@ struct _gc_thread_state {
2122};
2223#endif
2324
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-
5325
5426// Every PyThreadState is actually allocated as a _PyThreadStateImpl. The
5527// 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= \
14351435 $(srcdir)/Include/internal/pycore_unicodeobject_generated.h \
14361436 $(srcdir)/Include/internal/pycore_unionobject.h \
14371437 $(srcdir)/Include/internal/pycore_uniqueid.h \
1438+ $(srcdir)/Include/internal/pycore_uop.h \
14381439 $(srcdir)/Include/internal/pycore_uop_ids.h \
14391440 $(srcdir)/Include/internal/pycore_uop_metadata.h \
14401441 $(srcdir)/Include/internal/pycore_warnings.h \
Original file line number Diff line number Diff line change 882882 <ClInclude Include =" ..\Include\internal\pycore_uniqueid.h" >
883883 <Filter >Include\internal</Filter >
884884 </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 >
885894 <ClInclude Include =" ..\Include\internal\mimalloc\mimalloc.h" >
886895 <Filter >Include\internal\mimalloc</Filter >
887896 </ClInclude >
You can’t perform that action at this time.
0 commit comments