aboutsummaryrefslogtreecommitdiff
path: root/src/lj_opt_loop.c
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-17 22:08:20 +0100
committerMike Pall <mike>2009-12-17 22:08:20 +0100
commit6adab430afd9804d616b49658d09ab25c9380725 (patch)
tree155629b9598bc975c93454fd0ae6e88edfbad3c2 /src/lj_opt_loop.c
parent1353acacb16fe988a9c68f1e6ccafb5ac28686e8 (diff)
downloadluajit-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_opt_loop.c')
-rw-r--r--src/lj_opt_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_opt_loop.c b/src/lj_opt_loop.c
index 90ab1b6f..a743932d 100644
--- a/src/lj_opt_loop.c
+++ b/src/lj_opt_loop.c
@@ -336,7 +336,7 @@ static TValue *cploop_opt(lua_State *L, lua_CFunction dummy, void *ud)
336int lj_opt_loop(jit_State *J) 336int lj_opt_loop(jit_State *J)
337{ 337{
338 IRRef nins = J->cur.nins; 338 IRRef nins = J->cur.nins;
339 int errcode = lj_vm_cpcall(J->L, cploop_opt, NULL, J); 339 int errcode = lj_vm_cpcall(J->L, NULL, J, cploop_opt);
340 if (LJ_UNLIKELY(errcode)) { 340 if (LJ_UNLIKELY(errcode)) {
341 lua_State *L = J->L; 341 lua_State *L = J->L;
342 if (errcode == LUA_ERRRUN && tvisnum(L->top-1)) { /* Trace error? */ 342 if (errcode == LUA_ERRRUN && tvisnum(L->top-1)) { /* Trace error? */