Sign in

    Milky2018/wasmoon_jit/artifact/loader does not have a README file

    ArtifactIncompatible

    pub suberror ArtifactIncompatible {
    TargetMismatch(expected~ :
    TargetSpec
    , actual~ :
    TargetSpec
    )
    InvalidFunctionIndex(index~ : Int)
    ContextLayoutMismatch
    MissingCpuFeature(name~ : String)
    DuplicateCpuFeature(name~ : String)
    JitAbiVersionMismatch(expected~ : Int, actual~ : Int)
    CodegenRevisionMismatch(expected~ : String, actual~ : String)
    ModuleIdentityMismatch(expected~ :
    ModuleIdentity
    , actual~ :
    ModuleIdentity
    )
    CompilationPolicyMismatch(expected~ :
    CompilationPolicy
    , actual~ :
    CompilationPolicy
    )
    DuplicateFunctionIndex(index~ : Int)
    DuplicateSymbol(name~ : String)
    UnknownSymbol(kind~ : String, name~ : String)
    } derive(Eq,
    Debug
    )

    ArtifactIncompatible::equal

    ArtifactIncompatible::not_equal

    ArtifactLoadError

    pub suberror ArtifactLoadError {
    NativePreparationFailed(message~ : String)
    DecodeFailed(cause~ :
    ArtifactDecodeError
    )
    Incompatible(cause~ : ArtifactIncompatible)
    CodeObjectInvalid(cause~ :
    CodeObjectVerifyError
    )
    } derive(Eq,
    Debug
    )

    ArtifactLoadError::equal

    ArtifactLoadError::native_preparation_failed

    fn ArtifactLoadError::native_preparation_failed(message : String) -> ArtifactLoadError

    Report a checked failure while preparing native metadata for verified input.

    ArtifactLoadError::not_equal

    fn ArtifactLoadError::not_equal(x : ArtifactLoadError, y : ArtifactLoadError) -> Bool

    ArtifactCompatibility

    Host and module contract used to accept or reject a decoded artifact.

    ArtifactCompatibility::equal

    ArtifactCompatibility::not_equal

    LoadedArtifact

    A decoded artifact whose manifest and every code object have been checked.

    load_artifact

    fn load_artifact(bytes : Bytes, compatibility : ArtifactCompatibility, limits? :
    DecodeLimits
    ) -> LoadedArtifact raise ArtifactLoadError

    Decode, check compatibility, and reconstruct verified unlinked code objects.

    Decoded and live artifacts converge on verify_artifact, before the shared installer resolves any symbol or allocates executable memory.

    verify_artifact

    Check compatibility and reconstruct verified unlinked code objects from an in-memory artifact produced by the live compiler.

    No symbol is resolved and no executable memory is allocated or published.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io