aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-10-01 17:24:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-10-01 17:24:37 -0300
commitb2a580bdb1982e45bb37f95b78c2dafec6efa7a6 (patch)
tree76de58214adff838a26346514a8a6fba459bde9b /lopcodes.h
parent89f6a85f034b2535e43e421991098fa05a92cd60 (diff)
downloadlua-b2a580bdb1982e45bb37f95b78c2dafec6efa7a6.tar.gz
lua-b2a580bdb1982e45bb37f95b78c2dafec6efa7a6.tar.bz2
lua-b2a580bdb1982e45bb37f95b78c2dafec6efa7a6.zip
Janitorial work
- Several details in 'lcode.c' - A few more tests for code generation - Bug in assert in 'lcode.c' ("=" x "==") - Comments in 'lopcodes.h' and 'ltable.c'
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 95241702..443a71e9 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -221,7 +221,7 @@ OP_NEWTABLE,/* A B C R(A) := {} */
221 221
222OP_SELF,/* A B C R(A+1) := R(B); R(A) := R(B)[RK(C):string] */ 222OP_SELF,/* A B C R(A+1) := R(B); R(A) := R(B)[RK(C):string] */
223 223
224OP_ADDI,/* A B sC R(A) := R(B) + C */ 224OP_ADDI,/* A B sC R(A) := R(B) + sC */
225 225
226OP_ADDK,/* A B C R(A) := R(B) + K(C) */ 226OP_ADDK,/* A B C R(A) := R(B) + K(C) */
227OP_SUBK,/* A B C R(A) := R(B) - K(C) */ 227OP_SUBK,/* A B C R(A) := R(B) - K(C) */
@@ -235,8 +235,8 @@ OP_BANDK,/* A B C R(A) := R(B) & K(C):integer */
235OP_BORK,/* A B C R(A) := R(B) | K(C):integer */ 235OP_BORK,/* A B C R(A) := R(B) | K(C):integer */
236OP_BXORK,/* A B C R(A) := R(B) ~ K(C):integer */ 236OP_BXORK,/* A B C R(A) := R(B) ~ K(C):integer */
237 237
238OP_SHRI,/* A B sC R(A) := R(B) >> C */ 238OP_SHRI,/* A B sC R(A) := R(B) >> sC */
239OP_SHLI,/* A B sC R(A) := C << R(B) */ 239OP_SHLI,/* A B sC R(A) := sC << R(B) */
240 240
241OP_ADD,/* A B C R(A) := R(B) + R(C) */ 241OP_ADD,/* A B C R(A) := R(B) + R(C) */
242OP_SUB,/* A B C R(A) := R(B) - R(C) */ 242OP_SUB,/* A B C R(A) := R(B) - R(C) */
@@ -253,7 +253,7 @@ OP_SHL,/* A B C R(A) := R(B) << R(C) */
253OP_SHR,/* A B C R(A) := R(B) >> R(C) */ 253OP_SHR,/* A B C R(A) := R(B) >> R(C) */
254 254
255OP_MMBIN,/* A B C call C metamethod over R(A) and R(B) */ 255OP_MMBIN,/* A B C call C metamethod over R(A) and R(B) */
256OP_MMBINI,/* A B C call C metamethod over R(A) and B */ 256OP_MMBINI,/* A sB C call C metamethod over R(A) and sB */
257OP_MMBINK,/* A B C call C metamethod over R(A) and K(B) */ 257OP_MMBINK,/* A B C call C metamethod over R(A) and K(B) */
258 258
259OP_UNM,/* A B R(A) := -R(B) */ 259OP_UNM,/* A B R(A) := -R(B) */