diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-24 17:26:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-24 17:26:39 -0300 |
commit | cb3d5dce30089512085f78a0bef79e30ef732e30 (patch) | |
tree | 0459a127a7a7641a0a8f5eec7558db1432730e6d /lopcodes.h | |
parent | 2caecf1b3efdbee4e08888a04143421589d6143b (diff) | |
download | lua-cb3d5dce30089512085f78a0bef79e30ef732e30.tar.gz lua-cb3d5dce30089512085f78a0bef79e30ef732e30.tar.bz2 lua-cb3d5dce30089512085f78a0bef79e30ef732e30.zip |
opcodes 'OP_GETTABUP'/'OP_SETTABUP' operate only with string keys,
so they can use fast-track table access
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.149 2016/07/19 17:12:21 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.150 2017/04/20 19:53:55 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -255,6 +255,8 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */ | |||
255 | 255 | ||
256 | (*) In OP_LOADKX, the next 'instruction' is always EXTRAARG. | 256 | (*) In OP_LOADKX, the next 'instruction' is always EXTRAARG. |
257 | 257 | ||
258 | (*) In OP_GETTABUP, OP_SETTABUP, and OP_SELF, the index must be a string. | ||
259 | |||
258 | (*) For comparisons, A specifies what condition the test should accept | 260 | (*) For comparisons, A specifies what condition the test should accept |
259 | (true or false). | 261 | (true or false). |
260 | 262 | ||