diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-13 16:32:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-13 16:32:09 -0200 |
commit | 86431a2f1c668844c665f9d09e246de906b511d8 (patch) | |
tree | 643d503667b624d4faeecd6bed6cc51f9084cb00 /ldebug.c | |
parent | 36cf8f3a3c44da00cc9255797153df3c02895379 (diff) | |
download | lua-86431a2f1c668844c665f9d09e246de906b511d8.tar.gz lua-86431a2f1c668844c665f9d09e246de906b511d8.tar.bz2 lua-86431a2f1c668844c665f9d09e246de906b511d8.zip |
new opcodes BANDK/BORK/BXORK. (They do not use immediate operands
because, too often, masks in bitwise operations are integers larger
than one byte.)
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.146 2017/11/23 19:29:04 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.147 2017/12/07 15:44: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 | */ |
@@ -589,7 +589,8 @@ static const char *funcnamefromcode (lua_State *L, CallInfo *ci, | |||
589 | tm = TM_NEWINDEX; | 589 | tm = TM_NEWINDEX; |
590 | break; | 590 | break; |
591 | case OP_ADDI: case OP_SUBI: case OP_MULI: case OP_MODI: | 591 | case OP_ADDI: case OP_SUBI: case OP_MULI: case OP_MODI: |
592 | case OP_POWI: case OP_DIVI: case OP_IDIVI: { | 592 | case OP_POWI: case OP_DIVI: case OP_IDIVI: |
593 | case OP_BANDK: case OP_BORK: case OP_BXORK: { | ||
593 | int offset = GET_OPCODE(i) - OP_ADDI; /* ORDER OP */ | 594 | int offset = GET_OPCODE(i) - OP_ADDI; /* ORDER OP */ |
594 | tm = cast(TMS, offset + TM_ADD); /* ORDER TM */ | 595 | tm = cast(TMS, offset + TM_ADD); /* ORDER TM */ |
595 | break; | 596 | break; |