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

    ArrayCopyInfo
    ArrayFillInfo
    ArrayGetInfo
    ArrayInitDataInfo
    ArrayInitElemInfo
    ArrayLenInfo
    ArrayNewDataInfo
    ArrayNewElemInfo
    ArrayNewFixedInfo
    ArrayNewInfo
    ArraySetInfo
    AtomicCmpxchgInfo
    AtomicFenceInfo
    AtomicNotifyInfo
    AtomicRMWInfo
    AtomicWaitInfo
    BinaryInfo
    BlockInfo
    BreakInfo
    BrOnInfo
    CallIndirectInfo
    CallInfo
    CallRefInfo
    ConstInfo
    DataDropInfo
    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.

    GlobalGetInfo
    GlobalInfo
    GlobalRef

    Reference to a Module.Global.

    GlobalSetInfo
    HeapType
    I31GetInfo
    IfInfo
    LoadInfo
    LocalGetInfo
    LocalSetInfo
    LoopInfo
    MemoryCopyInfo
    MemoryFillInfo
    MemoryGrowInfo
    MemoryInfo
    MemoryInitInfo
    MemoryRef

    Reference to a Module.Memory.

    MemorySizeInfo
    ModuleRef

    Reference to a Module.

    PackedType
    RefAsInfo
    RefCastInfo
    RefEqInfo
    RefFuncInfo
    RefI31Info
    RefIsNullInfo
    RefTestInfo
    RelooperBlockRef
    RethrowInfo
    ReturnInfo
    SelectInfo
    SIMDExtractInfo
    SIMDLoadInfo
    SIMDLoadStoreLaneInfo
    SIMDReplaceInfo
    SIMDShiftInfo
    SIMDShuffleInfo
    SIMDTernaryInfo
    StoreInfo
    StringConcatInfo
    StringConstInfo
    StringEncodeInfo
    StringEqInfo
    StringMeasureInfo
    StringNewInfo
    StringSliceWTFInfo
    StringWTF16GetInfo
    StructGetInfo
    StructNewInfo
    StructSetInfo
    SwitchInfo
    TableGetInfo
    TableGrowInfo
    TableInfo
    TableRef

    Reference to a Module.Table.

    TableSetInfo
    TableSizeInfo
    TagInfo
    TagRef

    Reference to a Module.Tag.

    ThrowInfo
    TryInfo
    TupleExtractInfo
    TupleMakeInfo
    Type
    UnaryInfo
    WideIntAddSubInfo
    WideIntMulInfo

    Variables

    anyref

    (ref null any)

    ArrayCopy
    ArrayFill
    ArrayGet
    ArrayInitData
    ArrayInitElem
    ArrayLen
    ArrayNew
    ArrayNewData
    ArrayNewElem
    ArrayNewFixed
    arrayref

    (ref null array)

    ArraySet
    AtomicCmpxchg
    AtomicFence
    AtomicNotify
    AtomicRMW
    AtomicWait
    auto

    Used only for auto-detecting block types.

    Binary
    Block
    Break
    BrOn
    Call
    CallIndirect
    CallRef
    Const
    DataDrop
    Drop
    eqref

    (ref null eq)

    ExpressionIds
    ExternalKinds
    externref

    (ref null extern)

    f32

    32-bit float.

    f64

    64-bit float.

    Features
    funcref

    (ref null func)

    Function
    GlobalGet
    GlobalSet
    i16
    I31Get
    i31ref

    (ref null i31)

    i32

    32-bit integer.

    i64

    64-bit integer.

    i8
    If
    Load
    LocalGet
    LocalSet
    Loop
    MemoryCopy
    MemoryFill
    MemoryGrow
    MemoryInit
    MemorySize
    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)

    RefAs
    RefCast
    RefEq
    RefFunc
    RefI31
    RefIsNull
    RefTest
    Rethrow
    Return
    Select
    settings

    The global settings control.

    SideEffects
    SIMDExtract
    SIMDLoad
    SIMDLoadStoreLane
    SIMDReplace
    SIMDShift
    SIMDShuffle
    SIMDTernary
    Store
    StringConcat
    StringConst
    StringEncode
    StringEq
    StringMeasure
    StringNew
    stringref

    (ref null string)

    StringSliceWTF
    StringWTF16Get
    StructGet
    StructNew
    structref

    (ref null struct)

    StructSet
    Switch
    Table
    TableGet
    TableGrow
    TableSet
    TableSize
    Throw
    Try
    TupleExtract
    TupleMake
    Unary
    unreachable

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

    v128

    128-bit vector (SIMD).

    WideIntAddSub
    WideIntMul

    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.

    Expression

    Creates a new Expression object given an ExpressionRef argument. This function is called without new. You may also use the constructor new expressions.Expression(), or a specific subclass of it.

    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