virtual-machine 0.0.25 → 0.0.26

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.
@@ -206,14 +206,14 @@ if (!("encodeInto" in cachedTextEncoder)) {
206
206
  };
207
207
  }
208
208
  var WASM_VECTOR_LEN = 0;
209
- function wasm_bindgen__convert__closures_____invoke__hcb213e7f52b31168(arg0, arg1) {
210
- wasm.wasm_bindgen__convert__closures_____invoke__hcb213e7f52b31168(arg0, arg1);
211
- }
212
209
  function wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919(arg0, arg1, arg2) {
213
210
  wasm.wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919(arg0, arg1, arg2);
214
211
  }
215
- function wasm_bindgen__convert__closures_____invoke__hb7783920f48cbf0e(arg0, arg1) {
216
- wasm.wasm_bindgen__convert__closures_____invoke__hb7783920f48cbf0e(arg0, arg1);
212
+ function wasm_bindgen__convert__closures_____invoke__h7db8350a65138a75(arg0, arg1) {
213
+ wasm.wasm_bindgen__convert__closures_____invoke__h7db8350a65138a75(arg0, arg1);
214
+ }
215
+ function wasm_bindgen__convert__closures_____invoke__h214e37a833ce8d11(arg0, arg1) {
216
+ wasm.wasm_bindgen__convert__closures_____invoke__h214e37a833ce8d11(arg0, arg1);
217
217
  }
218
218
  var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
219
219
  }, unregister: () => {
@@ -342,6 +342,18 @@ var WasmVm = class {
342
342
  input(byte) {
343
343
  wasm.wasmvm_input(this.__wbg_ptr, byte);
344
344
  }
345
+ /**
346
+ * Execute up to N instructions in a batch.
347
+ * Returns the number of instructions actually executed.
348
+ * This is more efficient than calling step() N times due to reduced
349
+ * JS-WASM boundary crossings.
350
+ * @param {number} count
351
+ * @returns {number}
352
+ */
353
+ step_n(count) {
354
+ const ret = wasm.wasmvm_step_n(this.__wbg_ptr, count);
355
+ return ret >>> 0;
356
+ }
345
357
  /**
346
358
  * Get the halt code if the VM has halted.
347
359
  * Code 0x5555 typically means successful shutdown (PASS).
@@ -610,20 +622,20 @@ function __wbg_get_imports() {
610
622
  const ret = getStringFromWasm0(arg0, arg1);
611
623
  return ret;
612
624
  };
613
- imports.wbg.__wbindgen_cast_7e4d67645914f495 = function(arg0, arg1) {
614
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha64c5484eb0bd270, wasm_bindgen__convert__closures_____invoke__hb7783920f48cbf0e);
625
+ imports.wbg.__wbindgen_cast_500637ae475f666c = function(arg0, arg1) {
626
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h31964876cb87df28, wasm_bindgen__convert__closures_____invoke__h214e37a833ce8d11);
615
627
  return ret;
616
628
  };
617
629
  imports.wbg.__wbindgen_cast_9d58885f229d7092 = function(arg0, arg1) {
618
630
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb099e2ae98169675, wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919);
619
631
  return ret;
620
632
  };
621
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
622
- const ret = arg0;
633
+ imports.wbg.__wbindgen_cast_ad5da81fd3956308 = function(arg0, arg1) {
634
+ const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h31964876cb87df28, wasm_bindgen__convert__closures_____invoke__h7db8350a65138a75);
623
635
  return ret;
624
636
  };
625
- imports.wbg.__wbindgen_cast_f93a3e825c4a0341 = function(arg0, arg1) {
626
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha64c5484eb0bd270, wasm_bindgen__convert__closures_____invoke__hcb213e7f52b31168);
637
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
638
+ const ret = arg0;
627
639
  return ret;
628
640
  };
629
641
  imports.wbg.__wbindgen_init_externref_table = function() {