Adapt primary inbound calls in x64 interpreter.

Change argument order for lj_vm_cpcall() to simplify x64 interpreter.
This commit is contained in:
Mike Pall
2009-12-17 22:08:20 +01:00
parent 1353acacb1
commit 6adab430af
8 changed files with 402 additions and 317 deletions

View File

@@ -188,7 +188,7 @@ LUA_API lua_State *lua_newstate(lua_Alloc f, void *ud)
g->gc.stepmul = LUAI_GCMUL;
lj_dispatch_init((GG_State *)L);
L->status = LUA_ERRERR+1; /* Avoid touching the stack upon memory error. */
if (lj_vm_cpcall(L, cpluaopen, NULL, NULL) != 0) {
if (lj_vm_cpcall(L, NULL, NULL, cpluaopen) != 0) {
/* Memory allocation error: free partial state. */
close_state(L);
return NULL;
@@ -222,7 +222,7 @@ LUA_API void lua_close(lua_State *L)
L->status = 0;
L->cframe = NULL;
L->base = L->top = L->stack + 1;
} while (lj_vm_cpcall(L, cpfinalize, NULL, NULL) != 0);
} while (lj_vm_cpcall(L, NULL, NULL, cpfinalize) != 0);
close_state(L);
}