toilscript 0.1.31 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "imports": {
3
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.31/dist/toilscript.js",
4
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.31/dist/cli.js",
5
- "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
3
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.32/dist/toilscript.js",
4
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.32/dist/cli.js",
5
+ "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@130.0.0-nightly.20260609/index.js",
6
6
  "long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
7
7
  }
8
8
  }
@@ -1465,6 +1465,8 @@ declare module "types:toilscript/src/glue/binaryen" {
1465
1465
  export function _BinaryenUnarySetOp(expr: ExpressionRef, op: Op): void;
1466
1466
  export function _BinaryenUnaryGetValue(expr: ExpressionRef): ExpressionRef;
1467
1467
  export function _BinaryenUnarySetValue(expr: ExpressionRef, valueExpr: ExpressionRef): void;
1468
+ export function _BinaryenWideIntAddSub(module: ModuleRef, op: Op, leftLowExpr: ExpressionRef, leftHighExpr: ExpressionRef, rightLowExpr: ExpressionRef, rightHighExpr: ExpressionRef): ExpressionRef;
1469
+ export function _BinaryenWideIntMul(module: ModuleRef, op: Op, leftExpr: ExpressionRef, rightExpr: ExpressionRef): ExpressionRef;
1468
1470
  export function _BinaryenBinary(module: ModuleRef, op: Op, leftExpr: ExpressionRef, rightExpr: ExpressionRef): ExpressionRef;
1469
1471
  export function _BinaryenBinaryGetOp(expr: ExpressionRef): Op;
1470
1472
  export function _BinaryenBinarySetOp(expr: ExpressionRef, op: Op): void;
@@ -6201,7 +6203,9 @@ declare module "types:toilscript/src/module" {
6201
6203
  ResumeThrow = 102,
6202
6204
  StackSwitch = 103,
6203
6205
  StructWait = 104,
6204
- StructNotify = 105
6206
+ StructNotify = 105,
6207
+ WideIntAddSub = 106,
6208
+ WideIntMul = 107
6205
6209
  }
6206
6210
  /** Binaryen external kind constants. */
6207
6211
  export const enum ExternalKind {
@@ -7104,9 +7108,23 @@ declare module "types:toilscript/src/module" {
7104
7108
  /** ref.as_non_null */
7105
7109
  NonNull = 0,
7106
7110
  /** any.convert_extern */
7107
- ExternInternalize = 1,
7111
+ AnyConvertExtern = 1,
7108
7112
  /** extern.convert_any */
7109
- ExternExternalize = 2
7113
+ ExternConvertAny = 2
7114
+ }
7115
+ /** Binaryen wide integer add/sub operation constants. */
7116
+ export const enum WideIntAddSubOp {
7117
+ /** i64.add128 */
7118
+ Add = 0,
7119
+ /** i64.sub128 */
7120
+ Sub = 1
7121
+ }
7122
+ /** Binaryen wide integer multiply operation constants. */
7123
+ export const enum WideIntMulOp {
7124
+ /** i64.mul_wide_s */
7125
+ SignedI64 = 0,
7126
+ /** i64.mul_wide_u */
7127
+ UnsignedI64 = 1
7110
7128
  }
7111
7129
  /** Binaryen BrOn operation constants. */
7112
7130
  export const enum BrOnOp {
@@ -7194,6 +7212,8 @@ declare module "types:toilscript/src/module" {
7194
7212
  string_compare(left: ExpressionRef, right: ExpressionRef): ExpressionRef;
7195
7213
  unary(op: UnaryOp, value: ExpressionRef): ExpressionRef;
7196
7214
  binary(op: BinaryOp, left: ExpressionRef, right: ExpressionRef): ExpressionRef;
7215
+ wide_int_add_sub(op: WideIntAddSubOp, leftLow: ExpressionRef, leftHigh: ExpressionRef, rightLow: ExpressionRef, rightHigh: ExpressionRef): ExpressionRef;
7216
+ wide_int_mul(op: WideIntMulOp, left: ExpressionRef, right: ExpressionRef): ExpressionRef;
7197
7217
  memory_size(name?: string, is64?: boolean): ExpressionRef;
7198
7218
  memory_grow(delta: ExpressionRef, name?: string, is64?: boolean): ExpressionRef;
7199
7219
  table_size(name: string): ExpressionRef;
@@ -7290,6 +7310,8 @@ declare module "types:toilscript/src/module" {
7290
7310
  /** Unlimited table constant. */
7291
7311
  static readonly UNLIMITED_TABLE: Index;
7292
7312
  addFunctionTable(name: string, initial: Index, maximum: Index, funcs: string[], offset: ExpressionRef): void;
7313
+ /** Ensures that an empty function table of the given name exists, to be sized and filled later. */
7314
+ ensureFunctionTable(name: string): void;
7293
7315
  addCustomSection(name: string, contents: Uint8Array): void;
7294
7316
  getOptimizeLevel(): number;
7295
7317
  setOptimizeLevel(level: number): void;
@@ -10293,6 +10315,8 @@ declare module "types:toilscript/src/glue/src/glue/binaryen" {
10293
10315
  export function _BinaryenUnarySetOp(expr: ExpressionRef, op: Op): void;
10294
10316
  export function _BinaryenUnaryGetValue(expr: ExpressionRef): ExpressionRef;
10295
10317
  export function _BinaryenUnarySetValue(expr: ExpressionRef, valueExpr: ExpressionRef): void;
10318
+ export function _BinaryenWideIntAddSub(module: ModuleRef, op: Op, leftLowExpr: ExpressionRef, leftHighExpr: ExpressionRef, rightLowExpr: ExpressionRef, rightHighExpr: ExpressionRef): ExpressionRef;
10319
+ export function _BinaryenWideIntMul(module: ModuleRef, op: Op, leftExpr: ExpressionRef, rightExpr: ExpressionRef): ExpressionRef;
10296
10320
  export function _BinaryenBinary(module: ModuleRef, op: Op, leftExpr: ExpressionRef, rightExpr: ExpressionRef): ExpressionRef;
10297
10321
  export function _BinaryenBinaryGetOp(expr: ExpressionRef): Op;
10298
10322
  export function _BinaryenBinarySetOp(expr: ExpressionRef, op: Op): void;