Binaryen.TS
    Preparing search index...

    Module binaryen.ts

    Namespaces

    expressions

    A collection of classes related to WASM expression manipulation.

    Module

    A collection of types and classes related to WASM module manipulation.

    Enumerations

    ExpressionId

    An enumeration of all the “kinds” of expressions.

    ExpressionRunnerFlag
    ExternalKind

    External kinds.

    Feature
    MemoryOrder

    [description]

    Operation

    Operations

    SideEffect

    Expression side-effects.

    Classes

    ExpressionRunner
    Module

    A WASM module.

    Relooper
    TypeBuilder

    Interfaces

    SettingsService

    Type Aliases

    BlockInfo
    BreakInfo
    ConstInfo
    DataSegmentRef

    Reference to a Module.DataSegment.

    DropInfo
    ElementSegmentInfo
    ElementSegmentRef

    Reference to an Module.ElementSegment.

    ExportInfo
    ExportRef

    Reference to an Module.Export.

    ExpressionBuilder

    An namespace of functions for building WASM expressions.

    ExpressionInfo
    ExpressionRef
    FunctionInfo
    FunctionRef

    Reference to a Module.Function.

    GlobalInfo
    GlobalRef

    Reference to a Module.Global.

    HeapType
    LocalGetInfo
    LocalSetInfo
    LoopInfo
    MemoryInfo
    MemoryRef

    Reference to a Module.Memory.

    ModuleRef

    Reference to a Module.

    PackedType
    SelectInfo
    TableInfo
    TableRef

    Reference to a Module.Table.

    TagInfo
    TagRef

    Reference to a Module.Tag.

    Type

    Variables

    anyref

    (ref null any)

    arrayref

    (ref null array)

    auto

    Used only for auto-detecting block types.

    eqref

    (ref null eq)

    ExpressionIds
    ExternalKinds
    externref

    (ref null extern)

    f32

    64-bit float.

    f64

    64-bit float.

    Features
    funcref

    (ref null func)

    Function
    i16
    i31ref

    (ref null i31)

    i32

    32-bit integer.

    i64

    64-bit integer.

    i8
    none

    Type with stack effect [t*] -> []. Not to be confused with the WASM heap type none.

    notPacked
    nullexternref

    (ref null noextern)

    nullfuncref

    (ref null nofunc)

    nullref

    (ref null none)

    settings

    The global settings control.

    SideEffects
    stringref

    (ref null string)

    structref

    (ref null struct)

    Table
    unreachable

    Type with stack effect [t*] -> [t*].

    v128

    128-bit vector (SIMD).

    Functions

    addPassToSkip
    clearPassArguments
    clearPassesToSkip
    createType

    Creates a multi-value type from an array of types.

    emitText

    Emits the expression in Binaryen’s s-expression text format (not official stack-style text format).

    exit
    expandType

    Expands a multi-value type to an array of types.

    getAllowInliningFunctionsWithLoops
    getAlwaysInlineMaxSize
    getClosedWorld
    getDebugInfo
    getElementSegmentInfo
    getExportInfo
    getExpressionId

    A misnomer — returns not a unique “ID”, but the “kind” of the expression.

    getExpressionInfo

    Obtains information about an expression. Additional properties depend on the expression’s ID and are usually equivalent to the respective parameters when creating such an expression.

    getExpressionType

    Gets the type of the specified expression.

    getFastMath
    getFlexibleInlineMaxSize
    getFunctionInfo
    getGenerateStackIR
    getGlobalInfo
    getHeapType

    Gets the heap type of a type.

    getLowMemoryUnused
    getOneCallerInlineMaxSize
    getOptimizeLevel
    getOptimizeStackIR
    getPassArgument
    getShrinkLevel
    getSideEffects
    getTableInfo
    getTagInfo
    getTrapsNeverHappen
    getTypeFromHeapType

    Gets the type from a heap type generated by TypeBuilder.

    getZeroFilledMemory
    hasPassToSkip
    parseText

    Creates a module from Binaryen’s s-expression text format (not official stack-style text format).

    readBinary

    Creates a module from binary data.

    readBinaryWithFeatures
    setAllowInliningFunctionsWithLoops
    setAlwaysInlineMaxSize
    setClosedWorld
    setDebugInfo
    setFastMath
    setFlexibleInlineMaxSize
    setGenerateStackIR
    setLowMemoryUnused
    setOneCallerInlineMaxSize
    setOptimizeLevel
    setOptimizeStackIR
    setPassArgument
    setShrinkLevel
    setTrapsNeverHappen
    setZeroFilledMemory