From 3b19af44b05ce5e7f7db3708d052cca25fe6d7d3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 29 Aug 2005 17:49:21 -0300 Subject: new method to handle tests without values (negative values) --- lopcodes.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lopcodes.c') diff --git a/lopcodes.c b/lopcodes.c index 542fa620..91c334e0 100644 --- a/lopcodes.c +++ b/lopcodes.c @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.c,v 1.33 2005/05/04 20:42:28 roberto Exp roberto $ +** $Id: lopcodes.c,v 1.34 2005/05/20 15:53:42 roberto Exp $ ** See Copyright Notice in lua.h */ @@ -43,6 +43,7 @@ const char *const luaP_opnames[NUM_OPCODES+1] = { "LT", "LE", "TEST", + "TESTSET", "CALL", "TAILCALL", "RETURN", @@ -87,7 +88,8 @@ const lu_byte luaP_opmodes[NUM_OPCODES] = { ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_EQ */ ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_LT */ ,opmode(1, 0, OpArgK, OpArgK, iABC) /* OP_LE */ - ,opmode(1, 1, OpArgR, OpArgU, iABC) /* OP_TEST */ + ,opmode(1, 0, OpArgR, OpArgU, iABC) /* OP_TEST */ + ,opmode(1, 1, OpArgR, OpArgU, iABC) /* OP_TESTSET */ ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_CALL */ ,opmode(0, 1, OpArgU, OpArgU, iABC) /* OP_TAILCALL */ ,opmode(0, 0, OpArgU, OpArgN, iABC) /* OP_RETURN */ -- cgit v1.2.3-55-g6feb