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/{chunk-JU756VDZ.mjs → chunk-QQ2XY3LI.mjs} +16 -16
- package/build/cli.js +41 -30
- package/build/index.d.ts +6 -5
- package/build/index.js +20 -21
- package/build/index.mjs +6 -7
- package/build/{riscv_vm-TWECKOQY.mjs → riscv_vm-E4XICADW.mjs} +1 -1
- package/build/worker.js +18 -18
- 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 +2 -2
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
|
|
332
|
-
readonly
|
|
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
|
|
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>;
|