diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-19 13:22:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-19 13:22:13 -0300 |
commit | 4758113043b6c362a0fdce77715c711332d909dc (patch) | |
tree | deea8a795161332bb1579f201f8a7eb5e4b102b9 /lopcodes.h | |
parent | a4e644add264b6bac3171a03aa6febcf61e89ae6 (diff) | |
download | lua-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) */ | |||
170 | OP_LOADK,/* A Bx R(A) := Kst(Bx) */ | 170 | OP_LOADK,/* A Bx R(A) := Kst(Bx) */ |
171 | OP_LOADKX,/* A R(A) := Kst(extra arg) */ | 171 | OP_LOADKX,/* A R(A) := Kst(extra arg) */ |
172 | OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */ | 172 | OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) pc++ */ |
173 | OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ | 173 | OP_LOADNIL,/* A B R(A), R(A+1), ..., R(A+B) := nil */ |
174 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ | 174 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ |
175 | 175 | ||
176 | OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */ | 176 | OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */ |