aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-12 16:14:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-12 16:14:06 -0300
commit25c557ec6367870c127e879cce8ed8fa21f34398 (patch)
tree37d322402a8163145a0f3a5728f98115402f352f /lopcodes.h
parentf292760f12022a83cf01e788482a264aeeb3c276 (diff)
downloadlua-25c557ec6367870c127e879cce8ed8fa21f34398.tar.gz
lua-25c557ec6367870c127e879cce8ed8fa21f34398.tar.bz2
lua-25c557ec6367870c127e879cce8ed8fa21f34398.zip
first version of _ENV; no more global variables
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lopcodes.h b/lopcodes.h
index b7ba60b7..dc8f37f5 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.133 2009/11/19 19:06:52 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.134 2010/02/26 20:40:29 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*/
@@ -171,11 +171,9 @@ OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */
171OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ 171OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */
172OP_GETUPVAL,/* A B R(A) := UpValue[B] */ 172OP_GETUPVAL,/* A B R(A) := UpValue[B] */
173 173
174OP_GETGLOBAL,/* A Bx R(A) := Gbl[Kst(Bx - 1)] */
175OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */ 174OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */
176OP_GETTABLE,/* A B C R(A) := R(B)[RK(C)] */ 175OP_GETTABLE,/* A B C R(A) := R(B)[RK(C)] */
177 176
178OP_SETGLOBAL,/* A Bx Gbl[Kst(Bx - 1)] := R(A) */
179OP_SETTABUP,/* A B C UpValue[A][RK(B)] := RK(C) */ 177OP_SETTABUP,/* A B C UpValue[A][RK(B)] := RK(C) */
180OP_SETUPVAL,/* A B UpValue[B] := R(A) */ 178OP_SETUPVAL,/* A B UpValue[B] := R(A) */
181OP_SETTABLE,/* A B C R(A)[RK(B)] := RK(C) */ 179OP_SETTABLE,/* A B C R(A)[RK(B)] := RK(C) */
@@ -245,8 +243,7 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */
245 (*) In OP_SETLIST, if (B == 0) then B = `top'; if (C == 0) then next 243 (*) In OP_SETLIST, if (B == 0) then B = `top'; if (C == 0) then next
246 'instruction' is EXTRAARG(real C). 244 'instruction' is EXTRAARG(real C).
247 245
248 (*) In OP_LOADK, OP_GETGLOBAL, and OP_SETGLOBAL, if (Bx == 0) then next 246 (*) In OP_LOADK, if (Bx == 0) then next 'instruction' is EXTRAARG(real Bx).
249 'instruction' is EXTRAARG(real Bx).
250 247
251 (*) For comparisons, A specifies what condition the test should accept 248 (*) For comparisons, A specifies what condition the test should accept
252 (true or false). 249 (true or false).