diff options
author | Guido van Rossum <guido@python.org> | 1991-12-16 13:09:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-16 13:09:28 (GMT) |
commit | a594fabbfae0853b1261d53caa8281fb7e8fa370 (patch) | |
tree | 861b1c59e350beb241af42b8b168645c0abb1e2d /Lib | |
parent | 750bf14c32b04a7c2a05812f5e313303234272c7 (diff) | |
download | cpython-a594fabbfae0853b1261d53caa8281fb7e8fa370.zip cpython-a594fabbfae0853b1261d53caa8281fb7e8fa370.tar.gz cpython-a594fabbfae0853b1261d53caa8281fb7e8fa370.tar.bz2 |
New opcodes: UNPACK_ARG, STORE_GLOBAL, DELETE_GLOBAL, LOAD_LOCAL, LOAD_GLOBAL
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/dis.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -147,9 +147,11 @@ name_op('STORE_NAME', 90) # Index in name list name_op('DELETE_NAME', 91) # "" def_op('UNPACK_TUPLE', 92) # Number of tuple items def_op('UNPACK_LIST', 93) # Number of list items -# unused: 94 +def_op('UNPACK_ARG', 94) # Number of arguments expected name_op('STORE_ATTR', 95) # Index in name list -name_op('DELETE_ATTR', 96) # "" +name_op('DELETE_ATTR', 96) # "" +name_op('STORE_GLOBAL', 97) # "" +name_op('DELETE_GLOBAL', 98) # "" def_op('LOAD_CONST', 100) # Index in const list hasconst.append(100) @@ -168,6 +170,9 @@ jrel_op('JUMP_IF_TRUE', 112) # "" jabs_op('JUMP_ABSOLUTE', 113) # Target byte offset from beginning of code jrel_op('FOR_LOOP', 114) # Number of bytes to skip +name_op('LOAD_LOCAL', 115) # Index in name list +name_op('LOAD_GLOBAL', 116) # Index in name list + jrel_op('SETUP_LOOP', 120) # Distance to target address jrel_op('SETUP_EXCEPT', 121) # "" jrel_op('SETUP_FINALLY', 122) # "" |