Working on full opcode coverage and support for exception control flow.
This commit is contained in:
parent
5ef00671e7
commit
6f532f164a
4 changed files with 61 additions and 23 deletions
|
|
@ -34,8 +34,8 @@ OPCODE_MAP = {
|
|||
'BUILD_CLASS': (3, 1, None),
|
||||
'BUILD_LIST': (-1, 1, None),
|
||||
'BUILD_MAP': (-1, 1, None),
|
||||
'BUILD_SET': (None, None, None),
|
||||
'BUILD_SLICE': (None, None, None),
|
||||
'BUILD_SET': (-1, 1, None),
|
||||
'BUILD_SLICE': (-1, 1, None), # oparg should only be 2 or 3
|
||||
'BUILD_TUPLE': (-1, 1, None),
|
||||
'CALL_FUNCTION': (-2, 1, None),
|
||||
'CALL_FUNCTION_KW': (-3, 1, None),
|
||||
|
|
@ -57,7 +57,7 @@ OPCODE_MAP = {
|
|||
'DUP_TOPX': (None, None, None),
|
||||
'DUP_TOP_TWO': (None, None, None),
|
||||
'END_FINALLY': (None, None, None),
|
||||
'EXEC_STMT': (None, None, None),
|
||||
'EXEC_STMT': (3, 0, 1),
|
||||
'EXTENDED_ARG': (None, None, None),
|
||||
'FOR_ITER': (1, 1, 1),
|
||||
'GET_ITER': (1, 1, None),
|
||||
|
|
@ -83,7 +83,7 @@ OPCODE_MAP = {
|
|||
'JUMP_IF_FALSE_OR_POP': (None, None, None),
|
||||
'JUMP_IF_TRUE': (1, 1, 1),
|
||||
'JUMP_IF_TRUE_OR_POP': (None, None, None),
|
||||
'LIST_APPEND': (2, 0, 1),
|
||||
'LIST_APPEND': (None, None, None),
|
||||
'LOAD_ATTR': (1, 1, None),
|
||||
'LOAD_BUILD_CLASS': (None, None, None),
|
||||
'LOAD_CLOSURE': (None, None, None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue