aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/lopcodes.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-08-24 09:21:38 +0800
committerLi Jin <dragon-fly@qq.com>2023-08-24 09:21:38 +0800
commitcfcea12ba0e6a40d7c04ac64c75563db0896985c (patch)
tree8ee7c6d9cd5f7b60fd9bda035b703cc9969ab678 /src/3rdParty/lua/lopcodes.h
parenteb48c686a7ab5bd3f3f3a8628ed0423872a932c6 (diff)
downloadyuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.tar.gz
yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.tar.bz2
yuescript-cfcea12ba0e6a40d7c04ac64c75563db0896985c.zip
update Lua 5.4.
Diffstat (limited to 'src/3rdParty/lua/lopcodes.h')
-rw-r--r--src/3rdParty/lua/lopcodes.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/3rdParty/lua/lopcodes.h b/src/3rdParty/lua/lopcodes.h
index 7c27451..46911ca 100644
--- a/src/3rdParty/lua/lopcodes.h
+++ b/src/3rdParty/lua/lopcodes.h
@@ -21,7 +21,7 @@ iABC C(8) | B(8) |k| A(8) | Op(7) |
21iABx Bx(17) | A(8) | Op(7) | 21iABx Bx(17) | A(8) | Op(7) |
22iAsBx sBx (signed)(17) | A(8) | Op(7) | 22iAsBx sBx (signed)(17) | A(8) | Op(7) |
23iAx Ax(25) | Op(7) | 23iAx Ax(25) | Op(7) |
24isJ sJ(25) | Op(7) | 24isJ sJ (signed)(25) | Op(7) |
25 25
26 A signed argument is represented in excess K: the represented value is 26 A signed argument is represented in excess K: the represented value is
27 the written unsigned value minus K, where K is half the maximum for the 27 the written unsigned value minus K, where K is half the maximum for the
@@ -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