Skip to content

Commit

Permalink
Revert "Skip calling jit_exec on Wasm"
Browse files Browse the repository at this point in the history
This reverts commit e80752f.

RJIT and YJIT are never enabled on Wasm.  When both are disabled,
`jit_exec` is defined to return `Qundef` constantly, and is optimized
away.
  • Loading branch information
nobu committed Aug 5, 2023
1 parent e80752f commit 69edf96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,9 @@ vm_exec_bottom_main(void *context)
struct rb_vm_exec_context *ctx = (struct rb_vm_exec_context *)context;

ctx->state = TAG_NONE;
ctx->result = vm_exec_core(ctx->ec);
if (UNDEF_P(ctx->result = jit_exec(ctx->ec))) {
ctx->result = vm_exec_core(ctx->ec);
}
vm_exec_enter_vm_loop(ctx->ec, ctx, ctx->tag, true);
}

Expand Down

0 comments on commit 69edf96

Please sign in to comment.