Class FoldedState

java.lang.Object
ghidra.pcode.emu.jit.folding.FoldedState
All Implemented Interfaces:
PcodeExecutorState<MaskedBytes>, PcodeExecutorStatePiece<MaskedBytes, MaskedBytes>

public class FoldedState extends Object implements PcodeExecutorState<MaskedBytes>
A p-code executor state on MaskedBytes.

This is used as the state for interpretation when computing folded constants. Because the JIT only elides passage through registers and uniques, those are the only spaces we actually store here. Otherwise, this is roughly equivalent to BytesPcodeExecutorState, but we store both the values and masks of the MaskedBytes into the backing byte arrays.