diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-26 14:46:52 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-26 14:46:52 -0300 |
| commit | 173e41b2ebed59a716d299470de25e50aee3b921 (patch) | |
| tree | d106140f6940b987f28f4eaf962c2d3ab745afa1 /ldebug.c | |
| parent | a3f9c1a77abb2add30334160055dc2ed11eb0b2e (diff) | |
| download | lua-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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: { |
