Module wasm_api

Source
Expand description

WASM runtime descriptors and ABI helpers.

Structs§

RuntimeFnDescriptor
Descriptor for one runtime function available to generated WASM code.

Enums§

LoweringMode
Lowering strategy used by code generators for a runtime function.
WasmValType
Wasm value types used by runtime ABI metadata.

Constants§

ALLOC_SITE_AGGREGATE_NEW
Allocation site id used for struct/tuple aggregate allocation.
ALLOC_SITE_ARRAY_NEW
Allocation site id used for array allocation.
ALLOC_SITE_BOX_AGGREGATE_NEW
Allocation site id used for boxed aggregate payload allocation.
ALLOC_SITE_ENUM_NEW
Allocation site id used for enum allocation.
ALLOC_SITE_POINTER_CLONE
Allocation site id used for pointer clone allocation.
ALLOC_SITE_POINTER_NEW
Allocation site id used for direct pointer allocation.
IO_BOOL_TO_STRING_SYMBOL
Public symbol for std::io::bool_to_string.
IO_INT_TO_STRING_SYMBOL
Public symbol for std::io::int_to_string.
IO_LOG_SYMBOL
Public symbol for std::io::log.
PANIC_SYMBOL
Public symbol for std::panic.
RT_ALLOC_BYTES_SYMBOL
Internal symbol used by codegen for shared heap allocation.
RT_ALLOC_BYTES_TRACKED_SITE_SYMBOL
Internal symbol used by codegen for tracked allocation with source metadata.
RT_ALLOC_BYTES_TRACKED_SYMBOL
Internal symbol used by codegen for tracked shared heap allocation.
RT_ASSERT_NO_LEAKS_SYMBOL
Internal symbol used by codegen for runtime leak assertions.
RT_FREE_BYTES_SYMBOL
Internal symbol used by codegen for shared heap deallocation.
RT_SHADOW_STACK_RELEASE_SYMBOL
Internal symbol used by codegen to release one shadow stack frame.
RT_SHADOW_STACK_RESERVE_SYMBOL
Internal symbol used by codegen to reserve one shadow stack frame.
RUNTIME_WASM_FUNCTIONS 🔒
STRING_CONCAT_SYMBOL
Public symbol for std::string::concat.
STRING_DROP_SYMBOL
Public symbol for std::string::drop.
STRING_STARTS_WITH_SYMBOL
Public symbol for std::string::starts_with.
STRING_TAKE_SYMBOL
Public symbol for std::string::take.

Functions§

find_runtime_wasm_function
Parse a symbol and return its runtime descriptor.
runtime_wasm_functions
Return all runtime wasm function descriptors.