Esempio n. 1
0
jrel_op(l, "JUMP_FORWARD",        110,  0,  0, fallthrough=False)
                                                # Number of bytes to skip
jrel_op(l, "JUMP_IF_FALSE",       111,  1,  1, True)  # ""

jrel_op(l, "JUMP_IF_TRUE",        112,  1,  1, True)  # ""
jabs_op(l, "JUMP_ABSOLUTE",       113,  0,  0, fallthrough=False)
                                                # Target byte offset from beginning of code

name_op(l, "LOAD_GLOBAL",         116,  0,  1)  # Operand is in name list

jabs_op(l, "CONTINUE_LOOP",       119,  0,  0, fallthrough=False)  # Target address
jrel_op(l, "SETUP_LOOP",          120,  0,  0, conditional=True)  # Distance to target address
jrel_op(l, "SETUP_EXCEPT",        121,  0,  3, conditional=True)  # ""
jrel_op(l, "SETUP_FINALLY",       122,  0,  3, conditional=True)  # ""

local_op(l, "LOAD_FAST",          124,  0,  1)  # Local variable number
store_op(l, "STORE_FAST",         125,  1,  0, is_type="local")  # Local variable number
local_op(l, "DELETE_FAST",        126,  0,  0) # Local variable number is in operand

nargs_op(l, "RAISE_VARARGS",      130, -1,  2, fallthrough=False)
                                                # Number of raise arguments (1, 2, or 3)
nargs_op(l, "CALL_FUNCTION",      131, -1,  2)  # TOS is #args + (#kwargs << 8)

nargs_op(l, "MAKE_FUNCTION",      132, -1,  2)  # TOS is number of args with default values
varargs_op(l, "BUILD_SLICE",      133,  2,  1)  # TOS is number of items

def_op(l, "MAKE_CLOSURE",         134, -3,  1)
free_op(l, "LOAD_CLOSURE",        135,  0,  1)
free_op(l, "LOAD_DEREF",          136,  0,  1)
store_op(l, "STORE_DEREF",        137,  1,  0, is_type="free")
jrel_op(l, "JUMP_FORWARD", 110, 0, 0,
        fallthrough=False)  # Number of bytes to skip
jrel_op(l, "JUMP_IF_FALSE", 111, 1, 1, True)  # ""
jrel_op(l, "JUMP_IF_TRUE", 112, 1, 1, True)  # ""
jabs_op(l, "JUMP_ABSOLUTE", 113, 0, 0,
        fallthrough=False)  # Target byte offset from beginning of code
def_op(l, "FOR_LOOP", 114)  # Number of bytes to skip

name_op(l, "LOAD_GLOBAL", 116, 0, 1)  # Operand is in name list

jrel_op(l, "SETUP_LOOP", 120, 0, 0,
        conditional=True)  # Distance to target address
jrel_op(l, "SETUP_EXCEPT", 121, 0, 0)  # ""
jrel_op(l, "SETUP_FINALLY", 122, 0, 0)  # ""

local_op(l, "LOAD_FAST", 124, 0, 1)  # Local variable number
store_op(l, "STORE_FAST", 125, 1, 0, is_type="local")  # Local variable number
local_op(l, "DELETE_FAST", 126)  # Local variable number

def_op(l, "SET_LINENO", 127)  # Current line number

def_op(l, "RAISE_VARARGS", 130, -1, 0, fallthrough=False)
# Number of raise arguments (1, 2, or 3)
nargs_op(l, "CALL_FUNCTION", 131, -1, 1)  # #args + (#kwargs << 8)

def_op(l, "MAKE_FUNCTION", 132, -1, 1)  # Number of args with default values
varargs_op(l, "BUILD_SLICE", 133, -1, 1)  # Number of items

def_op(l, "EXTENDED_ARG", 143)
EXTENDED_ARG = 143
Esempio n. 3
0
jrel_op(l, 'JUMP_FORWARD',        110,  0,  0, fallthrough=False)
                                                # Number of bytes to skip
jrel_op(l, 'JUMP_IF_FALSE',       111,  1,  1, True)  # ""

jrel_op(l, 'JUMP_IF_TRUE',        112,  1,  1, True)  # ""
jabs_op(l, 'JUMP_ABSOLUTE',       113,  0,  0, fallthrough=False)
                                                # Target byte offset from beginning of code

name_op(l, 'LOAD_GLOBAL',         116,  0,  1)  # Operand is in name list

jabs_op(l, 'CONTINUE_LOOP',       119,  0,  0, fallthrough=False)  # Target address
jrel_op(l, 'SETUP_LOOP',          120,  0,  0, conditional=True)  # Distance to target address
jrel_op(l, 'SETUP_EXCEPT',        121,  0,  6, conditional=True)  # ""
jrel_op(l, 'SETUP_FINALLY',       122,  0,  7, conditional=True)  # ""

local_op(l, 'LOAD_FAST',          124,  0,  1)  # Local variable number
local_op(l, 'STORE_FAST',         125,  1,  0)  # Local variable number
local_op(l, 'DELETE_FAST',        126)          # Local variable number

def_op(l, 'RAISE_VARARGS',        130, -1,  0, fallthrough=False)
                                                # Number of raise arguments (1, 2, or 3)
nargs_op(l, 'CALL_FUNCTION',      131,  9,  1)  # TOS is #args + (#kwargs << 8)

def_op(l, 'MAKE_FUNCTION',        132,  9,  1)  # TOS is number of args with default values
varargs_op(l, 'BUILD_SLICE',      133,  9,  1)  # TOS is number of items

def_op(l, 'MAKE_CLOSURE',         134,  9,  1)
free_op(l, 'LOAD_CLOSURE',        135,  0,  1)
free_op(l, 'LOAD_DEREF',          136,  0,  1)
free_op(l, 'STORE_DEREF',         137,  1,  0)
Esempio n. 4
0
name_op(l, 'IMPORT_FROM', 108, 0, 1)  # Operand is in name list

jrel_op(l, 'JUMP_FORWARD', 110, 0, 0)  # Number of bytes to skip
jrel_op(l, 'JUMP_IF_FALSE', 111, 1, 1)  # ""
jrel_op(l, 'JUMP_IF_TRUE', 112, 1, 1)  # ""
jabs_op(l, 'JUMP_ABSOLUTE', 113, 0,
        0)  # Target byte offset from beginning of code

name_op(l, 'LOAD_GLOBAL', 116, 0, 1)  # Operand is in name list

jabs_op(l, 'CONTINUE_LOOP', 119, 0, 0)  # Target address
jrel_op(l, 'SETUP_LOOP', 120, 0, 0)  # Distance to target address
jrel_op(l, 'SETUP_EXCEPT', 121, 0, 0)  # ""
jrel_op(l, 'SETUP_FINALLY', 122, 0, 0)  # ""

local_op(l, 'LOAD_FAST', 124, 0, 1)  # Local variable number
local_op(l, 'STORE_FAST', 125, 1, 0)  # Local variable number
local_op(l, 'DELETE_FAST', 126)  # Local variable number

def_op(l, 'RAISE_VARARGS', 130, -1,
       0)  # Number of raise arguments (1, 2, or 3)
nargs_op(l, 'CALL_FUNCTION', 131, -1, 1)  # #args + (#kwargs << 8)

def_op(l, 'MAKE_FUNCTION', 132, -1, 1)  # Number of args with default values
varargs_op(l, 'BUILD_SLICE', 133, -1, 1)  # Number of items

def_op(l, 'MAKE_CLOSURE', 134, -1, 1)
free_op(l, 'LOAD_CLOSURE', 135, 0, 1)
free_op(l, 'LOAD_DEREF', 136, 0, 1)
free_op(l, 'STORE_DEREF', 137, 1, 0)
Esempio n. 5
0
        conditional=True)  # Target byte offset from beginning of code
jabs_op(l, 'JUMP_IF_TRUE_OR_POP', 112, conditional=True)  # ""
jabs_op(l, 'JUMP_ABSOLUTE', 113, 0, 0,
        fallthrough=False)  # Target byte offset from beginning of code
jabs_op(l, 'POP_JUMP_IF_FALSE', 114, 2, 1, conditional=True)  # ""
jabs_op(l, 'POP_JUMP_IF_TRUE', 115, 2, 1, conditional=True)  # ""

name_op(l, 'LOAD_GLOBAL', 116, 0, 1)  # Operand is in name list

jabs_op(l, 'CONTINUE_LOOP', 119, 0, 0, fallthrough=False)  # Target address
jrel_op(l, 'SETUP_LOOP', 120, 0, 0,
        conditional=True)  # Distance to target address
jrel_op(l, 'SETUP_EXCEPT', 121, 0, 6, conditional=True)  # ""
jrel_op(l, 'SETUP_FINALLY', 122, 0, 6, conditional=True)  # ""

local_op(l, 'LOAD_FAST', 124, 0, 1)  # Local variable number
store_op(l, 'STORE_FAST', 125, 1, 0, is_type="local")  # Local variable number
local_op(l, 'DELETE_FAST', 126, 0, 0)  # Local variable number

nargs_op(l, 'RAISE_VARARGS', 130, -1, 1, fallthrough=False)
# Number of raise arguments (1, 2, or 3)
nargs_op(l, 'CALL_FUNCTION', 131, -1, 1)  # #args + (#kwargs << 8)

nargs_op(l, 'MAKE_FUNCTION', 132, -2, 1)  # TOS is number of args if < 3.6
varargs_op(l, 'BUILD_SLICE', 133, 2, 1)  # TOS is number of items to pop

nargs_op(l, 'MAKE_CLOSURE', 134, -3, 1)  # TOS is number of items to pop
free_op(l, 'LOAD_CLOSURE', 135, 0, 1)
free_op(l, 'LOAD_DEREF', 136, 0, 1)
store_op(l, 'STORE_DEREF', 137, 1, 0, is_type="free")
free_op(l, 'DELETE_DEREF', 138, 0, 0)