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:
@ -65,6 +65,14 @@ jit_codegen_gen_native(JitCompContext *cc);
|
||||
bool
|
||||
jit_codegen_lower(JitCompContext *cc);
|
||||
|
||||
#if WASM_ENABLE_LAZY_JIT != 0 && WASM_ENABLE_JIT != 0
|
||||
void *
|
||||
jit_codegen_compile_call_to_llvm_jit(const WASMType *func_type);
|
||||
|
||||
void *
|
||||
jit_codegen_compile_call_to_fast_jit(const WASMModule *module, uint32 func_idx);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Dump native code in the given range to assembly.
|
||||
*
|
||||
@ -75,7 +83,8 @@ void
|
||||
jit_codegen_dump_native(void *begin_addr, void *end_addr);
|
||||
|
||||
int
|
||||
jit_codegen_interp_jitted_glue(void *self, JitInterpSwitchInfo *info, void *pc);
|
||||
jit_codegen_interp_jitted_glue(void *self, JitInterpSwitchInfo *info,
|
||||
uint32 func_idx, void *pc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user