diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-26 17:40:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-26 17:40:29 -0300 |
commit | 0fe2576a39633ab7873f9d4fd989f1e5203a5725 (patch) | |
tree | c759f10fb3565f924dad29874d85d9d1b139c3bf /lopcodes.h | |
parent | d08d237a49ff3cb961012b1de374914af6da3000 (diff) | |
download | lua-0fe2576a39633ab7873f9d4fd989f1e5203a5725.tar.gz lua-0fe2576a39633ab7873f9d4fd989f1e5203a5725.tar.bz2 lua-0fe2576a39633ab7873f9d4fd989f1e5203a5725.zip |
new instructions to optimize indexing on upvalues
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.132 2009/10/28 12:20:07 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.133 2009/11/19 19:06:52 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 | */ |
@@ -172,9 +172,11 @@ OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ | |||
172 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ | 172 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ |
173 | 173 | ||
174 | OP_GETGLOBAL,/* A Bx R(A) := Gbl[Kst(Bx - 1)] */ | 174 | OP_GETGLOBAL,/* A Bx R(A) := Gbl[Kst(Bx - 1)] */ |
175 | OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */ | ||
175 | OP_GETTABLE,/* A B C R(A) := R(B)[RK(C)] */ | 176 | OP_GETTABLE,/* A B C R(A) := R(B)[RK(C)] */ |
176 | 177 | ||
177 | OP_SETGLOBAL,/* A Bx Gbl[Kst(Bx - 1)] := R(A) */ | 178 | OP_SETGLOBAL,/* A Bx Gbl[Kst(Bx - 1)] := R(A) */ |
179 | OP_SETTABUP,/* A B C UpValue[A][RK(B)] := RK(C) */ | ||
178 | OP_SETUPVAL,/* A B UpValue[B] := R(A) */ | 180 | OP_SETUPVAL,/* A B UpValue[B] := R(A) */ |
179 | OP_SETTABLE,/* A B C R(A)[RK(B)] := RK(C) */ | 181 | OP_SETTABLE,/* A B C R(A)[RK(B)] := RK(C) */ |
180 | 182 | ||