Sign in

    Milky2018/wasmoon/wasm_frontend does not have a README file

    LowerError

    pub suberror LowerError {
    FunctionIndexOutOfRange(index~ : Int)
    TypeIndexOutOfRange(index~ : Int)
    NonFunctionType(index~ : Int)
    MissingCode(index~ : Int)
    UnsupportedNativeLowering(index~ : Int, reason~ : String)
    } derive(Eq,
    Debug
    )

    impl Show for LowerError

    EmbeddingEnvironment

    pub(all) struct EmbeddingEnvironment {
    runtime_symbol_prefix : String
    hidden_context_type :
    Type
    ?
    runtime_layout : RuntimeLayout?
    memory_descriptor_layout : MemoryDescriptorLayout?
    wasm_runtime_symbols :
    RuntimeSymbols

    } derive(
    Debug
    )

    EmbeddingEnvironment::EmbeddingEnvironment

    fn EmbeddingEnvironment::EmbeddingEnvironment(runtime_symbol_prefix? : String, hidden_context_type? :
    Type
    ?, runtime_layout? : RuntimeLayout?, memory_descriptor_layout? : MemoryDescriptorLayout?, wasm_runtime_symbols? :
    RuntimeSymbols
    ?) -> EmbeddingEnvironment

    EmbeddingEnvironment::hidden_context_param

    EmbeddingEnvironment::memory_descriptor_layout

    fn EmbeddingEnvironment::memory_descriptor_layout(self : EmbeddingEnvironment) -> MemoryDescriptorLayout?

    EmbeddingEnvironment::runtime_layout

    EmbeddingEnvironment::runtime_symbol

    EmbeddingEnvironment::wasm_runtime_symbols

    MemoryDescriptorLayout

    pub(all) struct MemoryDescriptorLayout {
    base_offset : Int
    current_length_offset : Int
    } derive(Eq,
    Debug
    )

    RuntimeLayout

    pub(all) struct RuntimeLayout {
    memory0_base_offset : Int
    memory0_size_offset : Int
    func_table_offset : Int
    table0_base_offset : Int
    table0_elements_offset : Int
    globals_offset : Int
    tables_offset : Int
    table_sizes_offset : Int
    memories_offset : Int
    pointer_stride : Int
    global_value_stride : Int
    table_entry_value_offset : Int
    table_entry_stride : Int
    func_table_entry_stride : Int
    } derive(Eq,
    Debug
    )

    lower_function

    try_lower_native_function

    fn try_lower_native_function(env : EmbeddingEnvironment, mod_ :
    Module
    , func_local_idx : Int) ->
    Function
    ? raise LowerError

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io