summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/vm.c b/vm.c
index 7a189206d73..ccbcc59a4c3 100644
--- a/vm.c
+++ b/vm.c
@@ -1807,15 +1807,7 @@ vm_exec(rb_execution_context_t *ec, int mjit_enable_p)
if ((state = EC_EXEC_TAG()) == TAG_NONE) {
if (mjit_enable_p)
result = mjit_exec(ec);
- vm_loop_start:
- if (result == Qundef)
- result = vm_exec_core(ec, initial);
- VM_ASSERT(ec->tag == &_tag);
- if ((state = _tag.state) != TAG_NONE) {
- err = (struct vm_throw_data *)result;
- _tag.state = TAG_NONE;
- goto exception_handler;
- }
+ goto vm_loop_start;
}
else {
unsigned int i;
@@ -2037,6 +2029,15 @@ vm_exec(rb_execution_context_t *ec, int mjit_enable_p)
goto exception_handler;
}
}
+ vm_loop_start:
+ if (result == Qundef)
+ result = vm_exec_core(ec, initial);
+ VM_ASSERT(ec->tag == &_tag);
+ if ((state = _tag.state) != TAG_NONE) {
+ err = (struct vm_throw_data *)result;
+ _tag.state = TAG_NONE;
+ goto exception_handler;
+ }
}
finish_vme:
EC_POP_TAG();