jit

jit

JIT control builtin namespace.

Runtime support: native and WebAssembly.

Import

use jit;

Functions

FunctionDescription
set_configSets the JIT runtime configuration from a map.
get_configReturns the current JIT runtime configuration as a map.
set_enabledEnables or disables the JIT at runtime.
get_enabledReturns whether the JIT is enabled at runtime.
set_hot_loop_thresholdSets the loop-hotness threshold used by the JIT.
get_hot_loop_thresholdReturns the loop-hotness threshold used by the JIT.
set_max_trace_lenSets the maximum trace length used by the JIT.
get_max_trace_lenReturns 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.