Skip to main content

Module jit

Module jit 

Expand description

Efficient just-in-time generation of CPU states.

Cloning and manipulating CPU states can be slow, especially if they do not fit in CPU cache. Sometimes it is more efficient to generate a state on-the-fly by modifying an existing state, rather than cloning the state and keeping multiple copies in memory. This module defines various ways to generate states just-in-time from a base state.

Structs§

ComplexJitState
A CPU state that is constructed just-in-time by replacing specific state bytes with the correct values.
ComplexJitStateBuilder
A builder for ComplexJitState.
ComplexStateRef
A reference to ComplexJitState.
GpRegJitState
A just-in-time CPU state that replaces one or more general-purpose registers with the correct values.
GpRegJitStateBuilder
A builder for GpRegJitState.
GpRegStateRef
A reference to a GpRegJitState.
SimpleJitState
A simple just-in-time CPU state, that replaces a fixed set of state bytes with the correct value.
SimpleStateRef
A reference to a SimpleJitState.

Enums§

MaybeJitState
A wrapper that implements AsSystemState and can either contain a SimpleJitState, ComplexJitState or a normal SystemState.
MaybeRef
A reference to a MaybeJitState.