Skip to content

Commit

Permalink
update constant
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Nov 2, 2023
1 parent 72c2d34 commit 8503138
Showing 1 changed file with 104 additions and 104 deletions.
208 changes: 104 additions & 104 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,105 +217,102 @@ export const enum FeatureFlags {
MultiValue = 512 /* _BinaryenFeatureMultivalue */,
GC = 1024 /* _BinaryenFeatureGC */,
Memory64 = 2048 /* _BinaryenFeatureMemory64 */,
RelaxedSIMD = 8192 /* _BinaryenFeatureRelaxedSIMD */,
ExtendedConst = 16384 /* _BinaryenFeatureExtendedConst */,
Stringref = 32768 /* _BinaryenFeatureStrings */,
MultiMemory = 65536 /* _BinaryenFeatureMultiMemories */,
All = 126975 /* _BinaryenFeatureAll */
RelaxedSIMD = 4096 /* _BinaryenFeatureRelaxedSIMD */,
ExtendedConst = 8192 /* _BinaryenFeatureExtendedConst */,
Stringref = 16384 /* _BinaryenFeatureStrings */,
MultiMemory = 32768 /* _BinaryenFeatureMultiMemory */,
All = 131071 /* _BinaryenFeatureAll */
}

/** Binaryen expression id constants. */
export const enum ExpressionId {
Invalid = 0,
Block,
If,
Loop,
Break,
Switch,
Call,
CallIndirect,
LocalGet,
LocalSet,
GlobalGet,
GlobalSet,
Load,
Store,
Const,
Unary,
Binary,
Select,
Drop,
Return,
MemorySize,
MemoryGrow,
Nop,
Unreachable,
AtomicRMW,
AtomicCmpxchg,
AtomicWait,
AtomicNotify,
AtomicFence,
SIMDExtract,
SIMDReplace,
SIMDShuffle,
SIMDTernary,
SIMDShift,
SIMDLoad,
SIMDLoadStoreLane,
MemoryInit,
DataDrop,
MemoryCopy,
MemoryFill,
Pop,
RefNull,
RefIsNull,
RefFunc,
RefEq,
TableGet,
TableSet,
TableSize,
TableGrow,
TableFill,
Try,
Throw,
Rethrow,
TupleMake,
TupleExtract,
RefI31,
I31Get,
CallRef,
RefTest,
RefCast,
BrOn,
StructNew,
StructGet,
StructSet,
ArrayNew,
ArrayNewData,
ArrayNewElem,
ArrayNewFixed,
ArrayGet,
ArraySet,
ArrayLen,
ArrayCopy,
ArrayFill,
ArrayInitData,
ArrayInitElem,
RefAs,
StringNew,
StringConst,
StringMeasure,
StringEncode,
StringConcat,
StringEq,
StringAs,
StringWTF8Advance,
StringWTF16Get,
StringIterNext,
StringIterMove,
StringSliceWTF,
StringSliceIter,
NumExpressionIds
Invalid = 0 /* _BinaryenInvalidId */,
Block = 1 /* _BinaryenBlockId */,
If = 2 /* _BinaryenIfId */,
Loop = 3 /* _BinaryenLoopId */,
Break = 4 /* _BinaryenBreakId */,
Switch = 5 /* _BinaryenSwitchId */,
Call = 6 /* _BinaryenCallId */,
CallIndirect = 7 /* _BinaryenCallIndirectId */,
LocalGet = 8 /* _BinaryenLocalGetId */,
LocalSet = 9 /* _BinaryenLocalSetId */,
GlobalGet = 10 /* _BinaryenGlobalGetId */,
GlobalSet = 11 /* _BinaryenGlobalSetId */,
Load = 12 /* _BinaryenLoadId */,
Store = 13 /* _BinaryenStoreId */,
Const = 14 /* _BinaryenConstId */,
Unary = 15 /* _BinaryenUnaryId */,
Binary = 16 /* _BinaryenBinaryId */,
Select = 17 /* _BinaryenSelectId */,
Drop = 18 /* _BinaryenDropId */,
Return = 19 /* _BinaryenReturnId */,
MemorySize = 20 /* _BinaryenMemorySizeId */,
MemoryGrow = 21 /* _BinaryenMemoryGrowId */,
Nop = 22 /* _BinaryenNopId */,
Unreachable = 23 /* _BinaryenUnreachableId */,
AtomicRMW = 24 /* _BinaryenAtomicRMWId */,
AtomicCmpxchg = 25 /* _BinaryenAtomicCmpxchgId */,
AtomicWait = 26 /* _BinaryenAtomicWaitId */,
AtomicNotify = 27 /* _BinaryenAtomicNotifyId */,
AtomicFence = 28 /* _BinaryenAtomicFenceId */,
SIMDExtract = 29 /* _BinaryenSIMDExtractId */,
SIMDReplace = 30 /* _BinaryenSIMDReplaceId */,
SIMDShuffle = 31 /* _BinaryenSIMDShuffleId */,
SIMDTernary = 32 /* _BinaryenSIMDTernaryId */,
SIMDShift = 33 /* _BinaryenSIMDShiftId */,
SIMDLoad = 34 /* _BinaryenSIMDLoadId */,
SIMDLoadStoreLane = 35 /* _BinaryenSIMDLoadStoreLaneId */,
MemoryInit = 36 /* _BinaryenMemoryInitId */,
DataDrop = 37 /* _BinaryenDataDropId */,
MemoryCopy = 38 /* _BinaryenMemoryCopyId */,
MemoryFill = 39 /* _BinaryenMemoryFillId */,
Pop = 40 /* _BinaryenPopId */,
RefNull = 41 /* _BinaryenRefNullId */,
RefIsNull = 42 /* _BinaryenRefIsNullId */,
RefFunc = 43 /* _BinaryenRefFuncId */,
RefEq = 44 /* _BinaryenRefEqId */,
TableGet = 45 /* _BinaryenTableGetId */,
TableSet = 46 /* _BinaryenTableSetId */,
TableSize = 47 /* _BinaryenTableSizeId */,
TableGrow = 48 /* _BinaryenTableGrowId */,
Try = 50 /* _BinaryenTryId */,
Throw = 51 /* _BinaryenThrowId */,
Rethrow = 52 /* _BinaryenRethrowId */,
TupleMake = 53 /* _BinaryenTupleMakeId */,
TupleExtract = 54 /* _BinaryenTupleExtractId */,
RefI31 = 55 /* _BinaryenRefI31Id */,
I31Get = 56 /* _BinaryenI31GetId */,
CallRef = 57 /* _BinaryenCallRefId */,
RefTest = 58 /* _BinaryenRefTestId */,
RefCast = 59 /* _BinaryenRefCastId */,
BrOn = 60 /* _BinaryenBrOnId */,
StructNew = 61 /* _BinaryenStructNewId */,
StructGet = 62 /* _BinaryenStructGetId */,
StructSet = 63 /* _BinaryenStructSetId */,
ArrayNew = 64 /* _BinaryenArrayNewId */,
ArrayNewSeg = 64 /* TODO_BinaryenArraySegId */,
ArrayNewFixed = 67 /* _BinaryenArrayNewFixedId */,
ArrayGet = 68 /* _BinaryenArrayGetId */,
ArraySet = 69 /* _BinaryenArraySetId */,
ArrayLen = 70 /* _BinaryenArrayLenId */,
ArrayCopy = 71 /* _BinaryenArrayCopyId */,
ArrayFill = 72 /* _BinaryenArrayFillId */,
ArrayInitData = 73 /* _BinaryenArrayInitDataId */,
ArrayInitElem = 74 /* _BinaryenArrayInitElemId */,
RefAs = 75 /* _BinaryenRefAsId */,
StringNew = 76 /* _BinaryenStringNewId */,
StringConst = 77 /* _BinaryenStringConstId */,
StringMeasure = 78 /* _BinaryenStringMeasureId */,
StringEncode = 79 /* _BinaryenStringEncodeId */,
StringConcat = 80 /* _BinaryenStringConcatId */,
StringEq = 81 /* _BinaryenStringEqId */,
StringAs = 82 /* _BinaryenStringAsId */,
StringWTF8Advance = 83 /* _BinaryenStringWTF8AdvanceId */,
StringWTF16Get = 84 /* _BinaryenStringWTF16GetId */,
StringIterNext = 85 /* _BinaryenStringIterNextId */,
StringIterMove = 86 /* _BinaryenStringIterMoveId */,
StringSliceWTF = 87 /* _BinaryenStringSliceWTFId */,
StringSliceIter = 88 /* _BinaryenStringSliceIterId */
}

/** Binaryen external kind constants. */
Expand All @@ -324,8 +321,7 @@ export const enum ExternalKind {
Table = 1 /* _BinaryenExternalTable */,
Memory = 2 /* _BinaryenExternalMemory */,
Global = 3 /* _BinaryenExternalGlobal */,
Tag = 4 /* _BinaryenExternalTag */,
Invalid = -1
Tag = 4 /* _BinaryenExternalTag */
}

/** Binaryen unary operation constants. */
Expand Down Expand Up @@ -1270,15 +1266,15 @@ export const enum StringNewOp {
/** string.new_wtf8 wtf8 */
WTF8 = 1 /* _BinaryenStringNewWTF8 */,
/** string.new_wtf8 replace */
Replace = 2 /* _BinaryenStringNewReplace */,
LossyUTF8 = 2 /* _BinaryenStringNewLossyUTF8 */,
/** string.new_wtf16 */
WTF16 = 3 /* _BinaryenStringNewWTF16 */,
/** string.new_wtf8_array utf8 */
UTF8Array = 4 /* _BinaryenStringNewUTF8Array */,
/** string.new_wtf8_array wtf8 */
WTF8Array = 5 /* _BinaryenStringNewWTF8Array */,
/** string.new_wtf8_array replace */
ReplaceArray = 6 /* _BinaryenStringNewReplaceArray */,
LossyUTF8Array = 6 /* _BinaryenStringNewLossyUTF8Array */,
/** string.new_wtf16_array */
WTF16Array = 7 /* _BinaryenStringNewWTF16Array */,
/** string.from_code_point */
Expand All @@ -1303,16 +1299,20 @@ export const enum StringMeasureOp {
export const enum StringEncodeOp {
/** string.encode_wtf8 utf8 */
UTF8 = 0 /* _BinaryenStringEncodeUTF8 */,
/** string.encode_lossy_utf8 utf8 */
LossyUTF8 = 1 /* _BinaryenStringEncodeLossyUTF8 */,
/** string.encode_wtf8 wtf8 */
WTF8 = 1 /* _BinaryenStringEncodeWTF8 */,
WTF8 = 2 /* _BinaryenStringEncodeWTF8 */,
/** string.encode_wtf16 */
WTF16 = 2 /* _BinaryenStringEncodeWTF16 */,
WTF16 = 3 /* _BinaryenStringEncodeWTF16 */,
/** string.encode_wtf8_array utf8 */
UTF8Array = 3 /* _BinaryenStringEncodeUTF8Array */,
UTF8Array = 4 /* _BinaryenStringEncodeUTF8Array */,
/** string.encode_lossy_utf8_array utf8 */
LossyUTF8Array = 5 /* _BinaryenStringEncodeLossyUTF8Array */,
/** string.encode_wtf8_array wtf8 */
WTF8Array = 4 /* _BinaryenStringEncodeWTF8Array */,
WTF8Array = 6 /* _BinaryenStringEncodeWTF8Array */,
/** string.encode_wtf16_array */
WTF16Array = 5 /* _BinaryenStringEncodeWTF16Array */
WTF16Array = 7 /* _BinaryenStringEncodeWTF16Array */
}

/** Binaryen StringEq operation constants. */
Expand Down

0 comments on commit 8503138

Please sign in to comment.