package
1.9.0
Repository: https://github.com/tetratelabs/wazero.git
Documentation: pkg.go.dev

# Functions

CheckStackGuardPage checks the given stack guard page is not corrupted.
DeterministicCompilationVerifierGetRandomizedLocalFunctionIndex returns the randomized index for the given `index` which is assigned by DeterministicCompilationVerifierRandomizeIndexes.
DeterministicCompilationVerifierRandomizeIndexes randomizes the indexes for the deterministic compilation verifier.
No description provided by the author
No description provided by the author
GetCurrentFunctionIndex returns the current function index.
GetCurrentFunctionName returns the current function name.
No description provided by the author
NewDeterministicCompilationVerifierContext creates a new context with the deterministic compilation verifier used per wasm.Module.
NewIDedPool returns a new IDedPool.
NewModuleContextOffsetData creates a ModuleContextOffsetData determining the structure of moduleContextOpaque for the given Module.
NewNilVarLength returns a new VarLength[T] with a nil backing.
NewPool returns a new Pool.
NewVarLengthPool returns a new VarLengthPool.
PrintEnabledIndex returns true if the current function index is the print target.
PtrFromUintptr resurrects the original *T from the given uintptr.
ResetMap resets the map to an empty state, or creates a new map if it is nil.
SetCurrentFunctionName sets the current function name to the given `functionName`.
VerifyOrSetDeterministicCompilationContextValue verifies that the `newValue` is the same as the previous value for the given `scope` and the current function name.

# Constants

DeterministicCompilationVerifierEnabled enables the deterministic compilation verifier.
No description provided by the author
ExecutionContextOffsetCallerModuleContextPtr is an offset of `callerModuleContextPtr` field in wazevo.executionContext.
ExecutionContextOffsetCheckModuleExitCodeTrampolineAddress is an offset of `checkModuleExitCodeTrampolineAddress` field in wazevo.executionContext.
ExecutionContextOffsetExitCodeOffset is an offset of `exitCode` field in wazevo.executionContext.
No description provided by the author
ExecutionContextOffsetGoCallReturnAddress is an offset of `goCallReturnAddress` field in wazevo.executionContext.
ExecutionContextOffsetGoFunctionCallCalleeModuleContextOpaque is an offset of `goFunctionCallCalleeModuleContextOpaque` field in wazevo.executionContext.
ExecutionContextOffsetGoReturnAddress is an offset of `goReturnAddress` field in wazevo.executionContext.
No description provided by the author
ExecutionContextOffsetMemoryGrowTrampolineAddress is an offset of `memoryGrowTrampolineAddress` field in wazevo.executionContext.
No description provided by the author
No description provided by the author
No description provided by the author
ExecutionContextOffsetOriginalFramePointer is an offset of `originalFramePointer` field in wazevo.executionContext.
ExecutionContextOffsetOriginalStackPointer is an offset of `originalStackPointer` field in wazevo.executionContext.
ExecutionContextOffsetRefFuncTrampolineAddress is an offset of `refFuncTrampolineAddress` field in wazevo.executionContext.
ExecutionContextOffsetSavedRegistersBegin is an offset of the first element of `savedRegisters` field in wazevo.executionContext.
ExecutionContextOffsetStackBottomPtr is an offset of `stackBottomPtr` field in wazevo.executionContext.
ExecutionContextOffsetStackGrowCallTrampolineAddress is an offset of `stackGrowCallTrampolineAddress` field in wazevo.executionContext.
ExecutionContextOffsetStackGrowRequiredSize is an offset of `stackGrowRequiredSize` field in wazevo.executionContext.
ExecutionContextOffsetStackPointerBeforeGoCall is an offset of `StackPointerBeforeGoCall` field in wazevo.executionContext.
ExecutionContextOffsetTableGrowTrampolineAddress is an offset of `tableGrowTrampolineAddress` field in wazevo.executionContext.
ExitCodeCallGoFunction is an exit code for a call to an api.GoFunction.
No description provided by the author
ExitCodeCallGoModuleFunction is an exit code for a call to an api.GoModuleFunction.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FunctionInstanceExecutableOffset is an offset of `executable` field in wazevo.functionInstance.
FunctionInstanceModuleContextOpaquePtrOffset is an offset of `moduleContextOpaquePtr` field in wazevo.functionInstance.
FunctionInstanceSize is the size of wazevo.functionInstance.
FunctionInstanceTypeIDOffset is an offset of `typeID` field in wazevo.functionInstance.
nolint.
No description provided by the author
No description provided by the author
nolint.
PrintMachineCodeHexPerFunctionDisassemblable prints the machine code while modifying the actual result to make it disassemblable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SSAValidationEnabled enables the SSA validation.
StackGuardCheckEnabled enables the stack guard check to ensure that our stack bounds check works correctly.
----- Stack Guard Check -----.

# Variables

No description provided by the author

# Structs

IDedPool is a pool of T that can be allocated and reset, with a way to get T by an ID.
ModuleContextOffsetData allows the compilers to get the information about offsets to the fields of wazevo.moduleContextOpaque, This is unique per module.
Perfmap holds perfmap entries to be flushed into a perfmap file.
Pool is a pool of T that can be allocated and reset.
Queue is the resettable queue where the underlying slice is reused.
VarLength is a variable length array that can be reused via a pool.
VarLengthPool is a pool of VarLength[T] that can be allocated and reset.

# Type aliases

ExitCode is an exit code of an execution of a function.
Offset represents an offset of a field of a struct.