]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
new opcodes RAISE_VARARGS, CALL_FUNCTION
authorGuido van Rossum <guido@python.org>
Fri, 7 Jul 1995 22:32:10 +0000 (22:32 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Jul 1995 22:32:10 +0000 (22:32 +0000)
Include/opcode.h

index 65fe1bb2afd45d37f54eefaab5e23041615d5efc..959bb44883504a1de24d1d8efe99730d69e083ae 100644 (file)
@@ -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};