jit
jit
JIT control builtin namespace.
Runtime support: native and WebAssembly.
Import
use jit;
Functions
| Function | Description |
|---|---|
set_config | Sets the JIT runtime configuration from a map. |
get_config | Returns the current JIT runtime configuration as a map. |
set_enabled | Enables or disables the JIT at runtime. |
get_enabled | Returns whether the JIT is enabled at runtime. |
set_hot_loop_threshold | Sets the loop-hotness threshold used by the JIT. |
get_hot_loop_threshold | Returns the loop-hotness threshold used by the JIT. |
set_max_trace_len | Sets the maximum trace length used by the JIT. |
get_max_trace_len | Returns the maximum trace length used by the JIT. |
Function details
set_config
fn set_config(enabled: bool, hot_loop_threshold: int, max_trace_len: int) -> map
Sets the JIT runtime configuration from a map.
get_config
fn get_config() -> map
Returns the current JIT runtime configuration as a map.
set_enabled
fn set_enabled(enabled: bool) -> bool
Enables or disables the JIT at runtime.
get_enabled
fn get_enabled() -> bool
Returns whether the JIT is enabled at runtime.
set_hot_loop_threshold
fn set_hot_loop_threshold(hot_loop_threshold: int) -> int
Sets the loop-hotness threshold used by the JIT.
get_hot_loop_threshold
fn get_hot_loop_threshold() -> int
Returns the loop-hotness threshold used by the JIT.
set_max_trace_len
fn set_max_trace_len(max_trace_len: int) -> int
Sets the maximum trace length used by the JIT.
get_max_trace_len
fn get_max_trace_len() -> int
Returns the maximum trace length used by the JIT.