summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_uops.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-07-17 19:12:33 (GMT)
committerGitHub <noreply@github.com>2023-07-17 19:12:33 (GMT)
commit8e9a1a032233f06ce0f1acdf5f983d614c8745a5 (patch)
treed9a31c1c33b6b363d12f5e258a169835dbf29cd6 /Include/internal/pycore_uops.h
parent7e96370a946a2ca0f2f25af4ce5b3b59f020721b (diff)
downloadcpython-8e9a1a032233f06ce0f1acdf5f983d614c8745a5.zip
cpython-8e9a1a032233f06ce0f1acdf5f983d614c8745a5.tar.gz
cpython-8e9a1a032233f06ce0f1acdf5f983d614c8745a5.tar.bz2
gh-106603: Make uop struct a triple (opcode, oparg, operand) (#106794)
Diffstat (limited to 'Include/internal/pycore_uops.h')
-rw-r--r--Include/internal/pycore_uops.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/internal/pycore_uops.h b/Include/internal/pycore_uops.h
index 5ed275f..edb141c 100644
--- a/Include/internal/pycore_uops.h
+++ b/Include/internal/pycore_uops.h
@@ -11,8 +11,9 @@ extern "C" {
#define _Py_UOP_MAX_TRACE_LENGTH 32
typedef struct {
- int opcode;
- uint64_t operand; // Sometimes oparg, sometimes a cache entry
+ uint32_t opcode;
+ uint32_t oparg;
+ uint64_t operand; // A cache entry
} _PyUOpInstruction;
typedef struct {