@wasmgroundup/emit 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/index.js +0 -48
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -412,34 +412,10 @@ export function elemsec(segs) {
412
412
  return section(SECTION_ID_ELEMENT, vec(segs));
413
413
  }
414
414
 
415
- instr.local ??= {};
416
- instr.global ??= {};
417
- instr.memory ??= {};
418
- instr.i32 ??= {};
419
- instr.i64 ??= {};
420
- instr.f32 ??= {};
421
- instr.f64 ??= {};
422
- instr.unreachable = 0x0;
423
415
  instr.nop = 0x1;
424
- instr.block = 0x2;
425
- instr.loop = 0x3;
426
- instr.if = 0x4;
427
- instr.else = 0x5;
428
- instr.end = 0xb;
429
- instr.br = 0xc;
430
- instr.br_if = 0xd;
431
416
  instr.br_table = 0xe;
432
417
  instr.return = 0xf;
433
- instr.call = 0x10;
434
- instr.call_indirect = 0x11;
435
- instr.drop = 0x1a;
436
418
  instr.select = 0x1b;
437
- instr.local.get = 0x20;
438
- instr.local.set = 0x21;
439
- instr.local.tee = 0x22;
440
- instr.global.get = 0x23;
441
- instr.global.set = 0x24;
442
- instr.i32.load = 0x28;
443
419
  instr.i64.load = 0x29;
444
420
  instr.f32.load = 0x2a;
445
421
  instr.f64.load = 0x2b;
@@ -453,7 +429,6 @@ instr.i64.load16_s = 0x32;
453
429
  instr.i64.load16_u = 0x33;
454
430
  instr.i64.load32_s = 0x34;
455
431
  instr.i64.load32_u = 0x35;
456
- instr.i32.store = 0x36;
457
432
  instr.i64.store = 0x37;
458
433
  instr.f32.store = 0x38;
459
434
  instr.f64.store = 0x39;
@@ -462,23 +437,6 @@ instr.i32.store16 = 0x3b;
462
437
  instr.i64.store8 = 0x3c;
463
438
  instr.i64.store16 = 0x3d;
464
439
  instr.i64.store32 = 0x3e;
465
- instr.memory.size = 0x3f;
466
- instr.memory.grow = 0x40;
467
- instr.i32.const = 0x41;
468
- instr.i64.const = 0x42;
469
- instr.f32.const = 0x43;
470
- instr.f64.const = 0x44;
471
- instr.i32.eqz = 0x45;
472
- instr.i32.eq = 0x46;
473
- instr.i32.ne = 0x47;
474
- instr.i32.lt_s = 0x48;
475
- instr.i32.lt_u = 0x49;
476
- instr.i32.gt_s = 0x4a;
477
- instr.i32.gt_u = 0x4b;
478
- instr.i32.le_s = 0x4c;
479
- instr.i32.le_u = 0x4d;
480
- instr.i32.ge_s = 0x4e;
481
- instr.i32.ge_u = 0x4f;
482
440
  instr.i64.eqz = 0x50;
483
441
  instr.i64.eq = 0x51;
484
442
  instr.i64.ne = 0x52;
@@ -505,15 +463,9 @@ instr.f64.ge = 0x66;
505
463
  instr.i32.clz = 0x67;
506
464
  instr.i32.ctz = 0x68;
507
465
  instr.i32.popcnt = 0x69;
508
- instr.i32.add = 0x6a;
509
- instr.i32.sub = 0x6b;
510
- instr.i32.mul = 0x6c;
511
- instr.i32.div_s = 0x6d;
512
466
  instr.i32.div_u = 0x6e;
513
467
  instr.i32.rem_s = 0x6f;
514
468
  instr.i32.rem_u = 0x70;
515
- instr.i32.and = 0x71;
516
- instr.i32.or = 0x72;
517
469
  instr.i32.xor = 0x73;
518
470
  instr.i32.shl = 0x74;
519
471
  instr.i32.shr_s = 0x75;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wasmgroundup/emit",
3
3
  "description": "A library for creating binary-encoded WebAssembly modules",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "repository": {