avoid local "pc" in interpreter loop (tricky optimization with no real gain)

This commit is contained in:
Roberto Ierusalimschy
2006-09-19 10:57:50 -03:00
parent d513c3c66b
commit d1ef7e0ec6
4 changed files with 48 additions and 51 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldebug.c,v 2.31 2006/08/07 19:04:06 roberto Exp roberto $
** $Id: ldebug.c,v 2.32 2006/09/11 14:07:24 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -58,6 +58,7 @@ LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) {
mask = 0;
func = NULL;
}
L->oldpc = L->savedpc;
L->hook = func;
L->basehookcount = count;
resethookcount(L);