virtual-machine 0.1.5 → 0.1.6
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/{chunk-JU756VDZ.mjs → chunk-NYVAEVXL.mjs} +14 -14
- package/build/cli.js +37 -26
- package/build/index.d.ts +6 -5
- package/build/index.js +17 -18
- package/build/index.mjs +5 -6
- package/build/{riscv_vm-TWECKOQY.mjs → riscv_vm-XRNGVFOP.mjs} +1 -1
- package/build/worker.js +15 -15
- package/native/riscv-vm-native.darwin-arm64.node +0 -0
- package/native/riscv-vm-native.darwin-x64.node +0 -0
- package/native/riscv-vm-native.linux-arm64-gnu.node +0 -0
- package/native/riscv-vm-native.linux-arm64-musl.node +0 -0
- package/native/riscv-vm-native.linux-x64-gnu.node +0 -0
- package/native/riscv-vm-native.linux-x64-musl.node +0 -0
- package/native/riscv-vm-native.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
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;
|
|
333
331
|
readonly wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765: (a: number, b: number, c: any) => void;
|
|
334
332
|
readonly wasm_bindgen__closure__destroy__hf225e18fc5ab9bc1: (a: number, b: number) => void;
|
|
335
|
-
readonly
|
|
336
|
-
readonly
|
|
333
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2fb143e274d04750: (a: number, b: number) => void;
|
|
334
|
+
readonly wasm_bindgen__closure__destroy__h4023f714f00bdc1f: (a: number, b: number) => void;
|
|
335
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf4f72b1758a638c0: (a: number, b: number) => void;
|
|
336
|
+
readonly wasm_bindgen__convert__closures_____invoke__habdd714824245bd8: (a: number, b: number, c: any) => 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
|
|
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>;
|