Sign in

    Milky2018/wasmoon/wasm_frontend does not have a README file

    TranslationContext

    Module-wide state shared while translating multiple function bodies.

    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

    translate_function

    fn translate_function(embedding_env :
    EmbeddingEnvironment
    , mod_ :
    Module
    , func_local_idx : Int, name? : String, memory_max_override? : Int?) ->
    Function
    raise LowerError

    Translate one module function through the canonical production frontend.

    translate_function_body

    Translate one decoded function body through the production Wasm frontend.

    translation_context_from_module

    fn translation_context_from_module(mod_ :
    Module
    , embedding_env :
    EmbeddingEnvironment
    , memory_max_override? : Int?, func_base? : Int, import_remap? : Array[Int]) ->
    TranslationContext

    Build the canonical production translation context for a decoded module.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io