diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-04 18:43:52 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-04 18:43:52 (GMT) |
commit | 74a69fa662fb844ad3c60eb27b09e5fa1e577305 (patch) | |
tree | 251ba06cc429ab62a204e28bece4f382e179c7bf /Include/opcode.h | |
parent | ef0e6c3b0485e83444b15c07f9cb1d905203791a (diff) | |
download | cpython-74a69fa662fb844ad3c60eb27b09e5fa1e577305.zip cpython-74a69fa662fb844ad3c60eb27b09e5fa1e577305.tar.gz cpython-74a69fa662fb844ad3c60eb27b09e5fa1e577305.tar.bz2 |
Issue #9225: Remove the ROT_FOUR and DUP_TOPX opcode, the latter replaced
by the new (and simpler) DUP_TOP_TWO. Performance isn't changed, but
our bytecode is a bit simplified. Patch by Demur Rumed.
Diffstat (limited to 'Include/opcode.h')
-rw-r--r-- | Include/opcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 7ffa359..1114c93 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -12,7 +12,7 @@ extern "C" { #define ROT_TWO 2 #define ROT_THREE 3 #define DUP_TOP 4 -#define ROT_FOUR 5 +#define DUP_TOP_TWO 5 #define NOP 9 #define UNARY_POSITIVE 10 @@ -83,7 +83,7 @@ extern "C" { #define DELETE_ATTR 96 /* "" */ #define STORE_GLOBAL 97 /* "" */ #define DELETE_GLOBAL 98 /* "" */ -#define DUP_TOPX 99 /* number of items to duplicate */ + #define LOAD_CONST 100 /* Index in const list */ #define LOAD_NAME 101 /* Index in name list */ #define BUILD_TUPLE 102 /* Number of tuple items */ |