aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-24 17:26:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-24 17:26:39 -0300
commitcb3d5dce30089512085f78a0bef79e30ef732e30 (patch)
tree0459a127a7a7641a0a8f5eec7558db1432730e6d /lopcodes.h
parent2caecf1b3efdbee4e08888a04143421589d6143b (diff)
downloadlua-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index afb9205a..ed3ea66d 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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