Module wasm_api
Expand description
WASM runtime descriptors and ABI helpers.
Structs§
- Runtime
FnDescriptor - Descriptor for one runtime function available to generated WASM code.
Enums§
- Lowering
Mode - Lowering strategy used by code generators for a runtime function.
- Wasm
ValType - 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.
- 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.