diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-15 10:07:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-05-15 10:07:25 -0300 |
commit | 934e77a286aeb97ca02badf56956ccc78217e9d0 (patch) | |
tree | 6994a5bc3d625d1d37156895a5b21bebb46f36a8 /lopcodes.h | |
parent | 6443185167c77adcc8552a3fee7edab7895db1a9 (diff) | |
download | lua-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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -210,15 +210,15 @@ OP_LOADNIL,/* A B R[A], R[A+1], ..., R[A+B] := nil */ | |||
210 | OP_GETUPVAL,/* A B R[A] := UpValue[B] */ | 210 | OP_GETUPVAL,/* A B R[A] := UpValue[B] */ |
211 | OP_SETUPVAL,/* A B UpValue[B] := R[A] */ | 211 | OP_SETUPVAL,/* A B UpValue[B] := R[A] */ |
212 | 212 | ||
213 | OP_GETTABUP,/* A B C R[A] := UpValue[B][K[C]:string] */ | 213 | OP_GETTABUP,/* A B C R[A] := UpValue[B][K[C]:shortstring] */ |
214 | OP_GETTABLE,/* A B C R[A] := R[B][R[C]] */ | 214 | OP_GETTABLE,/* A B C R[A] := R[B][R[C]] */ |
215 | OP_GETI,/* A B C R[A] := R[B][C] */ | 215 | OP_GETI,/* A B C R[A] := R[B][C] */ |
216 | OP_GETFIELD,/* A B C R[A] := R[B][K[C]:string] */ | 216 | OP_GETFIELD,/* A B C R[A] := R[B][K[C]:shortstring] */ |
217 | 217 | ||
218 | OP_SETTABUP,/* A B C UpValue[A][K[B]:string] := RK(C) */ | 218 | OP_SETTABUP,/* A B C UpValue[A][K[B]:shortstring] := RK(C) */ |
219 | OP_SETTABLE,/* A B C R[A][R[B]] := RK(C) */ | 219 | OP_SETTABLE,/* A B C R[A][R[B]] := RK(C) */ |
220 | OP_SETI,/* A B C R[A][B] := RK(C) */ | 220 | OP_SETI,/* A B C R[A][B] := RK(C) */ |
221 | OP_SETFIELD,/* A B C R[A][K[B]:string] := RK(C) */ | 221 | OP_SETFIELD,/* A B C R[A][K[B]:shortstring] := RK(C) */ |
222 | 222 | ||
223 | OP_NEWTABLE,/* A B C k R[A] := {} */ | 223 | OP_NEWTABLE,/* A B C k R[A] := {} */ |
224 | 224 | ||