aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-26 14:46:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-26 14:46:52 -0300
commit173e41b2ebed59a716d299470de25e50aee3b921 (patch)
treed106140f6940b987f28f4eaf962c2d3ab745afa1 /ldebug.c
parenta3f9c1a77abb2add30334160055dc2ed11eb0b2e (diff)
downloadlua-173e41b2ebed59a716d299470de25e50aee3b921.tar.gz
lua-173e41b2ebed59a716d299470de25e50aee3b921.tar.bz2
lua-173e41b2ebed59a716d299470de25e50aee3b921.zip
new opcode OP_ADDI (for immediate integer operand) (Experimental)
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index f1835890..4f35d211 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.120 2016/03/31 19:01:21 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.121 2016/10/19 12:32:10 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -513,6 +513,9 @@ static const char *funcnamefromcode (lua_State *L, CallInfo *ci,
513 case OP_SETTABUP: case OP_SETTABLE: 513 case OP_SETTABUP: case OP_SETTABLE:
514 tm = TM_NEWINDEX; 514 tm = TM_NEWINDEX;
515 break; 515 break;
516 case OP_ADDI:
517 tm = TM_ADD;
518 break;
516 case OP_ADD: case OP_SUB: case OP_MUL: case OP_MOD: 519 case OP_ADD: case OP_SUB: case OP_MUL: case OP_MOD:
517 case OP_POW: case OP_DIV: case OP_IDIV: case OP_BAND: 520 case OP_POW: case OP_DIV: case OP_IDIV: case OP_BAND:
518 case OP_BOR: case OP_BXOR: case OP_SHL: case OP_SHR: { 521 case OP_BOR: case OP_BXOR: case OP_SHL: case OP_SHR: {