aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-19 13:22:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-19 13:22:13 -0300
commit4758113043b6c362a0fdce77715c711332d909dc (patch)
treedeea8a795161332bb1579f201f8a7eb5e4b102b9 /lopcodes.h
parenta4e644add264b6bac3171a03aa6febcf61e89ae6 (diff)
downloadlua-4758113043b6c362a0fdce77715c711332d909dc.tar.gz
lua-4758113043b6c362a0fdce77715c711332d909dc.tar.bz2
lua-4758113043b6c362a0fdce77715c711332d909dc.zip
change in opcode OP_LOADNIL: B is used as a counter instead of a
register. (Avoids an assignment to R(B), not present in any other instruction.)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 60d1492d..5ab88228 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.139 2011/02/07 12:24:42 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.140 2011/04/07 18:14:12 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*/
@@ -170,7 +170,7 @@ OP_MOVE,/* A B R(A) := R(B) */
170OP_LOADK,/* A Bx R(A) := Kst(Bx) */ 170OP_LOADK,/* A Bx R(A) := Kst(Bx) */
171OP_LOADKX,/* A R(A) := Kst(extra arg) */ 171OP_LOADKX,/* A R(A) := Kst(extra arg) */
172OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */ 172OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */
173OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ 173OP_LOADNIL,/* A B R(A), R(A+1), ..., R(A+B) := nil */
174OP_GETUPVAL,/* A B R(A) := UpValue[B] */ 174OP_GETUPVAL,/* A B R(A) := UpValue[B] */
175 175
176OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */ 176OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */