diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-07 15:20:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-07 15:20:42 -0200 |
commit | c3e5946fb2b7b5781d9bca9d303967abe6263482 (patch) | |
tree | 012bee6184675f1559e994eba42dda7c38381283 /lvm.c | |
parent | ad0704e40cc7b3135fedc6d40a522addb039e090 (diff) | |
download | lua-c3e5946fb2b7b5781d9bca9d303967abe6263482.tar.gz lua-c3e5946fb2b7b5781d9bca9d303967abe6263482.tar.bz2 lua-c3e5946fb2b7b5781d9bca9d303967abe6263482.zip |
new format for JUMP instructions (to allow larger offsets)
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.301 2017/11/01 18:20:48 roberto Exp $ | 2 | ** $Id: lvm.c,v 2.306 2017/11/07 13:25:26 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 | */ |
@@ -753,7 +753,7 @@ void luaV_finishOp (lua_State *L) { | |||
753 | ** Execute a jump instruction. The 'updatemask' allows signals to stop | 753 | ** Execute a jump instruction. The 'updatemask' allows signals to stop |
754 | ** tight loops. (Without it, the local copy of 'mask' could never change.) | 754 | ** tight loops. (Without it, the local copy of 'mask' could never change.) |
755 | */ | 755 | */ |
756 | #define dojump(ci,i,e) { pc += GETARG_sBx(i) + e; updatemask(L); } | 756 | #define dojump(ci,i,e) { pc += GETARG_sJ(i) + e; updatemask(L); } |
757 | 757 | ||
758 | 758 | ||
759 | /* for test instructions, execute the jump instruction that follows it */ | 759 | /* for test instructions, execute the jump instruction that follows it */ |