diff options
author | Mike Pall <mike> | 2009-12-17 22:08:20 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-17 22:08:20 +0100 |
commit | 6adab430afd9804d616b49658d09ab25c9380725 (patch) | |
tree | 155629b9598bc975c93454fd0ae6e88edfbad3c2 /src/lj_record.c | |
parent | 1353acacb16fe988a9c68f1e6ccafb5ac28686e8 (diff) | |
download | luajit-6adab430afd9804d616b49658d09ab25c9380725.tar.gz luajit-6adab430afd9804d616b49658d09ab25c9380725.tar.bz2 luajit-6adab430afd9804d616b49658d09ab25c9380725.zip |
Adapt primary inbound calls in x64 interpreter.
Change argument order for lj_vm_cpcall() to simplify x64 interpreter.
Diffstat (limited to 'src/lj_record.c')
-rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 9b223ff6..9466b529 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -1101,7 +1101,7 @@ static void recff_xpcall(jit_State *J, TRef *res, RecordFFData *rd) | |||
1101 | /* Need to protect rec_call because the recorder may throw. */ | 1101 | /* Need to protect rec_call because the recorder may throw. */ |
1102 | rx.parg = parg; | 1102 | rx.parg = parg; |
1103 | rx.nargs = rd->nargs - 2; | 1103 | rx.nargs = rd->nargs - 2; |
1104 | errcode = lj_vm_cpcall(J->L, recff_xpcall_cp, NULL, &rx); | 1104 | errcode = lj_vm_cpcall(J->L, NULL, &rx, recff_xpcall_cp); |
1105 | /* Always undo Lua stack swap to avoid confusing the interpreter. */ | 1105 | /* Always undo Lua stack swap to avoid confusing the interpreter. */ |
1106 | rd->argv = restorestack(J->L, oargv); /* Stack may have been resized. */ | 1106 | rd->argv = restorestack(J->L, oargv); /* Stack may have been resized. */ |
1107 | copyTV(J->L, &rd->argv[0], &argv0); | 1107 | copyTV(J->L, &rd->argv[0], &argv0); |