summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/vm.c b/vm.c
index c8d0e6fa..63a8d1a7 100644
--- a/vm.c
+++ b/vm.c
@@ -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)