aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-07 15:20:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-07 15:20:42 -0200
commitc3e5946fb2b7b5781d9bca9d303967abe6263482 (patch)
tree012bee6184675f1559e994eba42dda7c38381283 /lvm.c
parentad0704e40cc7b3135fedc6d40a522addb039e090 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index b5e1c813..009dfc57 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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 */