aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-15 10:07:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-05-15 10:07:25 -0300
commit934e77a286aeb97ca02badf56956ccc78217e9d0 (patch)
tree6994a5bc3d625d1d37156895a5b21bebb46f36a8 /lopcodes.h
parent6443185167c77adcc8552a3fee7edab7895db1a9 (diff)
downloadlua-934e77a286aeb97ca02badf56956ccc78217e9d0.tar.gz
lua-934e77a286aeb97ca02badf56956ccc78217e9d0.tar.bz2
lua-934e77a286aeb97ca02badf56956ccc78217e9d0.zip
Details
- Better comments about short strings in opcodes. - luaH_newkey made static.
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 4c551453..46911cac 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -210,15 +210,15 @@ OP_LOADNIL,/* A B R[A], R[A+1], ..., R[A+B] := nil */
210OP_GETUPVAL,/* A B R[A] := UpValue[B] */ 210OP_GETUPVAL,/* A B R[A] := UpValue[B] */
211OP_SETUPVAL,/* A B UpValue[B] := R[A] */ 211OP_SETUPVAL,/* A B UpValue[B] := R[A] */
212 212
213OP_GETTABUP,/* A B C R[A] := UpValue[B][K[C]:string] */ 213OP_GETTABUP,/* A B C R[A] := UpValue[B][K[C]:shortstring] */
214OP_GETTABLE,/* A B C R[A] := R[B][R[C]] */ 214OP_GETTABLE,/* A B C R[A] := R[B][R[C]] */
215OP_GETI,/* A B C R[A] := R[B][C] */ 215OP_GETI,/* A B C R[A] := R[B][C] */
216OP_GETFIELD,/* A B C R[A] := R[B][K[C]:string] */ 216OP_GETFIELD,/* A B C R[A] := R[B][K[C]:shortstring] */
217 217
218OP_SETTABUP,/* A B C UpValue[A][K[B]:string] := RK(C) */ 218OP_SETTABUP,/* A B C UpValue[A][K[B]:shortstring] := RK(C) */
219OP_SETTABLE,/* A B C R[A][R[B]] := RK(C) */ 219OP_SETTABLE,/* A B C R[A][R[B]] := RK(C) */
220OP_SETI,/* A B C R[A][B] := RK(C) */ 220OP_SETI,/* A B C R[A][B] := RK(C) */
221OP_SETFIELD,/* A B C R[A][K[B]:string] := RK(C) */ 221OP_SETFIELD,/* A B C R[A][K[B]:shortstring] := RK(C) */
222 222
223OP_NEWTABLE,/* A B C k R[A] := {} */ 223OP_NEWTABLE,/* A B C k R[A] := {} */
224 224