aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-19 10:57:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-19 10:57:50 -0300
commitd1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631 (patch)
tree38a4baf7abb3c0683fb4d0e5b527d210f7077210 /lstate.h
parentd513c3c66b3c71412d87a3f24b8f792b7b728e93 (diff)
downloadlua-d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631.tar.gz
lua-d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631.tar.bz2
lua-d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631.zip
avoid local "pc" in interpreter loop (tricky optimization with no real gain)
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index d96e7b3b..9d4f0887 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.25 2006/07/11 15:53:29 roberto Exp $ 2** $Id: lstate.h,v 2.26 2006/08/15 19:59:20 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -107,6 +107,7 @@ struct lua_State {
107 global_State *l_G; 107 global_State *l_G;
108 CallInfo *ci; /* call info for current function */ 108 CallInfo *ci; /* call info for current function */
109 const Instruction *savedpc; /* `savedpc' of current function */ 109 const Instruction *savedpc; /* `savedpc' of current function */
110 const Instruction *oldpc; /* last pc traced */
110 StkId stack_last; /* last free slot in the stack */ 111 StkId stack_last; /* last free slot in the stack */
111 StkId stack; /* stack base */ 112 StkId stack; /* stack base */
112 CallInfo *end_ci; /* points after end of ci array*/ 113 CallInfo *end_ci; /* points after end of ci array*/