mirror of
https://github.com/janet-lang/janet
synced 2025-03-29 11:36:55 +00:00
Use vm_commit
This commit is contained in:
parent
3a4d56afca
commit
78eed9b11c
@ -980,7 +980,7 @@ static JanetSignal run_vm(JanetFiber *fiber, Janet in) {
|
|||||||
if (func->gc.flags & JANET_FUNCFLAG_TRACE) {
|
if (func->gc.flags & JANET_FUNCFLAG_TRACE) {
|
||||||
vm_do_trace(func, fiber->stacktop - fiber->stackstart, fiber->data + fiber->stackstart);
|
vm_do_trace(func, fiber->stacktop - fiber->stackstart, fiber->data + fiber->stackstart);
|
||||||
}
|
}
|
||||||
janet_stack_frame(stack)->pc = pc;
|
vm_commit();
|
||||||
if (janet_fiber_funcframe(fiber, func)) {
|
if (janet_fiber_funcframe(fiber, func)) {
|
||||||
int32_t n = fiber->stacktop - fiber->stackstart;
|
int32_t n = fiber->stacktop - fiber->stackstart;
|
||||||
janet_panicf("%v called with %d argument%s, expected %d",
|
janet_panicf("%v called with %d argument%s, expected %d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user