mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
GH-105229: Remove remaining two-codeunit superinstructions (GH-105326)
* Remove LOAD_CONST__LOAD_FAST and LOAD_FAST__LOAD_CONST superinstructions.
This commit is contained in:
parent
410c2f13e5
commit
e830289c52
12 changed files with 523 additions and 626 deletions
|
@ -33,10 +33,6 @@ _PyOpcode_num_popped(int opcode, int oparg, bool jump) {
|
|||
return 1;
|
||||
case STORE_FAST_STORE_FAST:
|
||||
return 2;
|
||||
case LOAD_FAST__LOAD_CONST:
|
||||
return 0+0;
|
||||
case LOAD_CONST__LOAD_FAST:
|
||||
return 0+0;
|
||||
case POP_TOP:
|
||||
return 1;
|
||||
case PUSH_NULL:
|
||||
|
@ -431,10 +427,6 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) {
|
|||
return 1;
|
||||
case STORE_FAST_STORE_FAST:
|
||||
return 0;
|
||||
case LOAD_FAST__LOAD_CONST:
|
||||
return 1+1;
|
||||
case LOAD_CONST__LOAD_FAST:
|
||||
return 1+1;
|
||||
case POP_TOP:
|
||||
return 0;
|
||||
case PUSH_NULL:
|
||||
|
@ -799,7 +791,7 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) {
|
|||
}
|
||||
#endif
|
||||
|
||||
enum InstructionFormat { INSTR_FMT_IB, INSTR_FMT_IBC, INSTR_FMT_IBC00, INSTR_FMT_IBC000, INSTR_FMT_IBC00000000, INSTR_FMT_IBIB, INSTR_FMT_IX, INSTR_FMT_IXC, INSTR_FMT_IXC000 };
|
||||
enum InstructionFormat { INSTR_FMT_IB, INSTR_FMT_IBC, INSTR_FMT_IBC00, INSTR_FMT_IBC000, INSTR_FMT_IBC00000000, INSTR_FMT_IX, INSTR_FMT_IXC, INSTR_FMT_IXC000 };
|
||||
struct opcode_metadata {
|
||||
bool valid_entry;
|
||||
enum InstructionFormat instr_format;
|
||||
|
@ -821,8 +813,6 @@ const struct opcode_metadata _PyOpcode_opcode_metadata[256] = {
|
|||
[STORE_FAST] = { true, INSTR_FMT_IB },
|
||||
[STORE_FAST_LOAD_FAST] = { true, INSTR_FMT_IB },
|
||||
[STORE_FAST_STORE_FAST] = { true, INSTR_FMT_IB },
|
||||
[LOAD_FAST__LOAD_CONST] = { true, INSTR_FMT_IBIB },
|
||||
[LOAD_CONST__LOAD_FAST] = { true, INSTR_FMT_IBIB },
|
||||
[POP_TOP] = { true, INSTR_FMT_IX },
|
||||
[PUSH_NULL] = { true, INSTR_FMT_IX },
|
||||
[END_FOR] = { true, INSTR_FMT_IB },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue