aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lopcodes.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 690c4c34..0d697c55 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.173 2017/11/29 16:57:36 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.174 2017/11/30 12:03:00 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*/
@@ -289,8 +289,8 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */
289 289
290 (*) In OP_RETURN, if (B == 0) then return up to 'top'. 290 (*) In OP_RETURN, if (B == 0) then return up to 'top'.
291 291
292 (*) In OP_SETLIST, if (B == 0) then B = 'top'; if (C == 0) then next 292 (*) In OP_SETLIST, if (B == 0) then real B = 'top'; if (C == 0) then
293 'instruction' is EXTRAARG(real C). 293 next 'instruction' is EXTRAARG(real C).
294 294
295 (*) In OP_LOADKX, the next 'instruction' is always EXTRAARG. 295 (*) In OP_LOADKX, the next 'instruction' is always EXTRAARG.
296 296
@@ -298,11 +298,16 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */
298 (true or false). 298 (true or false).
299 299
300 (*) For OP_LTI/OP_LEI, C indicates that the transformations 300 (*) For OP_LTI/OP_LEI, C indicates that the transformations
301 (A<B) => (!(B<=A)) or (A<=B) => (!(B<A)) were used to put the 301 (A<B) => (!(B<=A)) or (A<=B) => (!(B<A)) were used to put the constant
302 constant operator on the right side. 302 operator on the right side. (Non-total orders with NaN or metamethods
303 use this indication to correct their behavior.)
303 304
304 (*) All 'skips' (pc++) assume that next instruction is a jump. 305 (*) All 'skips' (pc++) assume that next instruction is a jump.
305 306
307 (*) In instructions ending a function (OP_RETURN*, OP_TAILCALL), k
308 specifies that the function builds upvalues, which may need to be
309 closed.
310
306===========================================================================*/ 311===========================================================================*/
307 312
308 313