diff options
-rw-r--r-- | vm.c | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -733,8 +733,11 @@ NOINLINE static void vm_if(struct vm *vm, vm_word_t insn) vm_word_t arg = vm->code[vm->ip++]; val test = vm_get(vm->dspl, vm_arg_operand_lo(arg)); - if (!test) - vm->ip = vm_insn_bigop(ip); + if (!test) { + if (ip < vm->ip) + sig_check_fast(); + vm->ip = ip; + } } NOINLINE static void vm_ifq(struct vm *vm, vm_word_t insn) @@ -744,8 +747,11 @@ NOINLINE static void vm_ifq(struct vm *vm, vm_word_t insn) val a = vm_get(vm->dspl, vm_arg_operand_lo(arg)); val b = vm_get(vm->dspl, vm_arg_operand_hi(arg)); - if (a != b) - vm->ip = vm_insn_bigop(ip); + if (a != b) { + if (ip < vm->ip) + sig_check_fast(); + vm->ip = ip; + } } NOINLINE static void vm_ifql(struct vm *vm, vm_word_t insn) @@ -755,8 +761,11 @@ NOINLINE static void vm_ifql(struct vm *vm, vm_word_t insn) val a = vm_get(vm->dspl, vm_arg_operand_lo(arg)); val b = vm_get(vm->dspl, vm_arg_operand_hi(arg)); - if (!eql(a, b)) - vm->ip = vm_insn_bigop(ip); + if (!eql(a, b)) { + if (ip < vm->ip) + sig_check_fast(); + vm->ip = ip; + } } NOINLINE static void vm_swtch(struct vm *vm, vm_word_t insn) |