virtual-machine 0.1.5 → 0.1.11

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.
package/build/index.d.ts CHANGED
@@ -328,12 +328,12 @@ interface InitOutput {
328
328
  readonly workerstate_new: (a: number, b: any, c: bigint) => number;
329
329
  readonly workerstate_step_batch: (a: number, b: number) => number;
330
330
  readonly workerstate_step_count: (a: number) => bigint;
331
- readonly wasm_bindgen__convert__closures_____invoke__h585740b37ab67ddc: (a: number, b: number) => void;
332
- readonly wasm_bindgen__closure__destroy__h37d1b5fcb52cb1b9: (a: number, b: number) => void;
331
+ readonly wasm_bindgen__convert__closures_____invoke__ha9e7bb6f220b3ef5: (a: number, b: number, c: any) => void;
332
+ readonly wasm_bindgen__closure__destroy__h249f2a1277930f38: (a: number, b: number) => void;
333
+ readonly wasm_bindgen__convert__closures_____invoke__ha3c2eb27cf3490eb: (a: number, b: number) => void;
334
+ readonly wasm_bindgen__convert__closures_____invoke__hf6fdf85ab3e9eabc: (a: number, b: number) => void;
333
335
  readonly wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765: (a: number, b: number, c: any) => void;
334
336
  readonly wasm_bindgen__closure__destroy__hf225e18fc5ab9bc1: (a: number, b: number) => void;
335
- readonly wasm_bindgen__convert__closures_____invoke__hc7b58d5dcf05d71f: (a: number, b: number, c: any) => void;
336
- readonly wasm_bindgen__convert__closures_____invoke__he5e8d2a2af985b7e: (a: number, b: number) => void;
337
337
  readonly __wbindgen_malloc: (a: number, b: number) => number;
338
338
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
339
339
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -448,10 +448,11 @@ interface VmOptions {
448
448
  *
449
449
  * NOTE: In WASM, multi-hart mode is significantly slower due to
450
450
  * SharedArrayBuffer/Atomics overhead (see tasks/improvements.md).
451
- * Default is 1 hart unless explicitly specified.
451
+ * Default is auto-detect (cpu/2) unless explicitly specified.
452
452
  *
453
453
  * @param kernelData - ELF kernel binary
454
454
  * @param options - VM configuration options
455
+ * @param options.harts - Number of harts: undefined/0 = auto-detect (cpu/2), >= 1 = explicit count
455
456
  * @returns WasmVm instance
456
457
  */
457
458
  declare function createVM(kernelData: Uint8Array, options?: VmOptions): Promise<WasmVm>;