aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-02-26 17:40:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-02-26 17:40:29 -0300
commit0fe2576a39633ab7873f9d4fd989f1e5203a5725 (patch)
treec759f10fb3565f924dad29874d85d9d1b139c3bf /lopcodes.h
parentd08d237a49ff3cb961012b1de374914af6da3000 (diff)
downloadlua-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index bd8cc082..b7ba60b7 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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 */
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)] */ 174OP_GETGLOBAL,/* A Bx R(A) := Gbl[Kst(Bx - 1)] */
175OP_GETTABUP,/* A B C R(A) := UpValue[B][RK(C)] */
175OP_GETTABLE,/* A B C R(A) := R(B)[RK(C)] */ 176OP_GETTABLE,/* A B C R(A) := R(B)[RK(C)] */
176 177
177OP_SETGLOBAL,/* A Bx Gbl[Kst(Bx - 1)] := R(A) */ 178OP_SETGLOBAL,/* A Bx Gbl[Kst(Bx - 1)] := R(A) */
179OP_SETTABUP,/* A B C UpValue[A][RK(B)] := RK(C) */
178OP_SETUPVAL,/* A B UpValue[B] := R(A) */ 180OP_SETUPVAL,/* A B UpValue[B] := R(A) */
179OP_SETTABLE,/* A B C R(A)[RK(B)] := RK(C) */ 181OP_SETTABLE,/* A B C R(A)[RK(B)] := RK(C) */
180 182