diff options
author | Guido van Rossum <guido@python.org> | 1995-07-07 22:32:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-07-07 22:32:10 (GMT) |
commit | 3b46a50d63527a059e047847e4ca10497054c5fd (patch) | |
tree | ec100d45d67065e37db95c40764c19db08f4684f | |
parent | 5bb73ed5e44797571173232dd0b0888717ed5b9a (diff) | |
download | cpython-3b46a50d63527a059e047847e4ca10497054c5fd.zip cpython-3b46a50d63527a059e047847e4ca10497054c5fd.tar.gz cpython-3b46a50d63527a059e047847e4ca10497054c5fd.tar.bz2 |
new opcodes RAISE_VARARGS, CALL_FUNCTION
-rw-r--r-- | Include/opcode.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 65fe1bb..959bb44 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -132,6 +132,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define SET_LINENO 127 /* Current line number */ +/* It used to be the case that opcodes should fit in 7 bits. This is + no longer the case -- 8 bits is fine (the instruction stream is now + a sequence of unsigned characters). We gladly use the new space + for new opcodes. */ + +#define RAISE_VARARGS 130 /* Number of raise arguments (1, 2 or 3) */ +#define CALL_FUNCTION 131 /* #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}; |