Mercurial > cpython-lru_cache-weakref
diff Include/opcode.h @ 14147:21ec69a56228 legacy-trunk
Charles G. Waldman <cgw@fnal.gov>:
Add the EXTENDED_ARG opcode to the virtual machine, allowing 32-bit
arguments to opcodes instead of being forced to stick to the 16-bit
limit. This is especially useful for machine-generated code, which
can be too long for the SET_LINENO parameter to fit into 16 bits.
This closes the implementation portion of SourceForge patch #100893.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 24 Aug 2000 00:32:09 +0000 |
| parents | 44e666cc8c07 |
| children | 27d7d89c774b |
line wrap: on
line diff
--- a/Include/opcode.h Wed Aug 23 23:31:34 2000 +0000 +++ b/Include/opcode.h Thu Aug 24 00:32:09 2000 +0000 @@ -130,6 +130,9 @@ #define CALL_FUNCTION_KW 141 /* #args + (#kwargs<<8) */ #define CALL_FUNCTION_VAR_KW 142 /* #args + (#kwargs<<8) */ +/* Support for opargs more than 16 bits long */ +#define EXTENDED_ARG 143 + /* 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};
