diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-14 14:46:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-14 14:46:15 -0300 |
commit | 634c3d57e924f36812ccc5798d91236ae819c6d1 (patch) | |
tree | 31e810ab78448a4487989c498560c4192f9dc209 /lvm.c | |
parent | 4aa9ad6514a98fd4e25015f29e04877e67d9772d (diff) | |
download | lua-634c3d57e924f36812ccc5798d91236ae819c6d1.tar.gz lua-634c3d57e924f36812ccc5798d91236ae819c6d1.tar.bz2 lua-634c3d57e924f36812ccc5798d91236ae819c6d1.zip |
optimization for SETLOCAL was too specific.
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.101 2000/04/12 18:57:19 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.102 2000/04/13 16:51:01 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -456,8 +456,7 @@ StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base) { | |||
456 | break; | 456 | break; |
457 | 457 | ||
458 | case OP_SETLOCAL: | 458 | case OP_SETLOCAL: |
459 | *(base+GETARG_A(i)) = *(top-1); | 459 | *(base+GETARG_U(i)) = *(--top); |
460 | top -= GETARG_B(i); | ||
461 | break; | 460 | break; |
462 | 461 | ||
463 | case OP_SETGLOBAL: | 462 | case OP_SETGLOBAL: |