Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d865e1

Browse files
committed
Get rid of some obsolete opcodes.
1 parent 7bda89f commit 9d865e1

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

Include/opcode.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,10 @@ PERFORMANCE OF THIS SOFTWARE.
9999
#define DELETE_NAME 91 /* "" */
100100
#define UNPACK_TUPLE 92 /* Number of tuple items */
101101
#define UNPACK_LIST 93 /* Number of list items */
102-
#define UNPACK_ARG 94 /* Number of arguments */
103102
#define STORE_ATTR 95 /* Index in name list */
104103
#define DELETE_ATTR 96 /* "" */
105104
#define STORE_GLOBAL 97 /* "" */
106105
#define DELETE_GLOBAL 98 /* "" */
107-
#define UNPACK_VARARG 99 /* Minimal number of arguments */
108106

109107
#define LOAD_CONST 100 /* Index in const list */
110108
#define LOAD_NAME 101 /* Index in name list */
@@ -122,11 +120,8 @@ PERFORMANCE OF THIS SOFTWARE.
122120
#define JUMP_ABSOLUTE 113 /* Target byte offset from beginning of code */
123121
#define FOR_LOOP 114 /* Number of bytes to skip */
124122

125-
#define LOAD_LOCAL 115 /* Index in name list */
126123
#define LOAD_GLOBAL 116 /* Index in name list */
127124

128-
#define SET_FUNC_ARGS 117 /* Argcount */
129-
130125
#define SETUP_LOOP 120 /* Target address (absolute) */
131126
#define SETUP_EXCEPT 121 /* "" */
132127
#define SETUP_FINALLY 122 /* "" */

Lib/dis.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,10 @@ def jabs_op(name, op):
208208
name_op('DELETE_NAME', 91) # ""
209209
def_op('UNPACK_TUPLE', 92) # Number of tuple items
210210
def_op('UNPACK_LIST', 93) # Number of list items
211-
def_op('UNPACK_ARG', 94) # Number of arguments expected
212211
name_op('STORE_ATTR', 95) # Index in name list
213212
name_op('DELETE_ATTR', 96) # ""
214213
name_op('STORE_GLOBAL', 97) # ""
215214
name_op('DELETE_GLOBAL', 98) # ""
216-
name_op('UNPACK_VARARG', 99) # Minimal number of arguments
217215

218216
def_op('LOAD_CONST', 100) # Index in const list
219217
hasconst.append(100)
@@ -233,11 +231,8 @@ def jabs_op(name, op):
233231
jabs_op('JUMP_ABSOLUTE', 113) # Target byte offset from beginning of code
234232
jrel_op('FOR_LOOP', 114) # Number of bytes to skip
235233

236-
name_op('LOAD_LOCAL', 115) # Index in name list
237234
name_op('LOAD_GLOBAL', 116) # Index in name list
238235

239-
def_op('SET_FUNC_ARGS', 117) # Argcount
240-
241236
jrel_op('SETUP_LOOP', 120) # Distance to target address
242237
jrel_op('SETUP_EXCEPT', 121) # ""
243238
jrel_op('SETUP_FINALLY', 122) # ""

0 commit comments

Comments
 (0)