Implement Multi-tier JIT (#1774)
Implement 2-level Multi-tier JIT engine: tier-up from Fast JIT to LLVM JIT to get quick cold startup by Fast JIT and better performance by gradually switching to LLVM JIT when the LLVM JIT functions are compiled by the backend threads. Refer to: https://github.com/bytecodealliance/wasm-micro-runtime/issues/1302
This commit is contained in:
@ -409,7 +409,7 @@ jit_compile_op_call(JitCompContext *cc, uint32 func_idx, bool tail_call)
|
||||
|
||||
res = create_first_res_reg(cc, func_type);
|
||||
|
||||
GEN_INSN(CALLBC, res, 0, jitted_code);
|
||||
GEN_INSN(CALLBC, res, 0, jitted_code, NEW_CONST(I32, func_idx));
|
||||
|
||||
if (!post_return(cc, func_type, res, true)) {
|
||||
goto fail;
|
||||
@ -700,7 +700,7 @@ jit_compile_op_call_indirect(JitCompContext *cc, uint32 type_idx,
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
GEN_INSN(CALLBC, res, 0, jitted_code);
|
||||
GEN_INSN(CALLBC, res, 0, jitted_code, func_idx);
|
||||
/* Store res into current frame, so that post_return in
|
||||
block func_return can get the value */
|
||||
n = cc->jit_frame->sp - cc->jit_frame->lp;
|
||||
|
||||
Reference in New Issue
Block a user