Skip to content

Commit c9d848c

Browse files
committed
feat: implement core virtual machine (VM) with instruction dispatch and runtime execution logic.
1 parent 8741677 commit c9d848c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/runtime/vm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,9 +533,7 @@ static InterpretResult run(VM* vm) {
533533
vm->stackTop -= argCount + 1;
534534
push(vm, result);
535535
DISPATCH();
536-
vm->stackTop -= argCount + 1;
537-
push(vm, result);
538-
DISPATCH();
536+
539537
} else if (IS_FOREIGN(callee)) {
540538
ObjForeign* foreign = AS_FOREIGN(callee);
541539
Value result = callForeign(foreign, argCount, vm->stackTop - argCount);

0 commit comments

Comments
 (0)