diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/opcode.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 8b6890f..0e15497 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -138,10 +138,17 @@ PERFORMANCE OF THIS SOFTWARE. for new opcodes. */ #define RAISE_VARARGS 130 /* Number of raise arguments (1, 2 or 3) */ +/* CALL_FUNCTION_XXX opcodes defined below depend on this definition */ #define CALL_FUNCTION 131 /* #args + (#kwargs<<8) */ #define MAKE_FUNCTION 132 /* #defaults */ #define BUILD_SLICE 133 /* Number of items */ +/* The next 3 opcodes must be contiguous and satisfy + (CALL_FUNCTION_STAR - CALL_FUNCTION) & 3 == 1 */ +#define CALL_FUNCTION_VAR 140 /* #args + (#kwargs<<8) */ +#define CALL_FUNCTION_KW 141 /* #args + (#kwargs<<8) */ +#define CALL_FUNCTION_VAR_KW 142 /* #args + (#kwargs<<8) */ + /* Comparison operator codes (argument to COMPARE_OP) */ enum cmp_op {LT, LE, EQ, NE, GT, GE, IN, NOT_IN, IS, IS_NOT, EXC_MATCH, BAD}; |