virtual-machine 0.0.10 → 0.0.15
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-MELUIZWO.mjs → chunk-F2WF4S7X.mjs} +165 -125
- package/build/cli.js +160 -120
- package/build/index.d.ts +7 -5
- package/build/index.js +160 -120
- package/build/index.mjs +3 -3
- package/build/{riscv_vm-JTPPWIT3.mjs → riscv_vm-DKL3OVT4.mjs} +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* Network connection status for the WASM VM.
|
|
5
6
|
*/
|
|
@@ -9,9 +10,7 @@ declare enum NetworkStatus {
|
|
|
9
10
|
Connected = 2,
|
|
10
11
|
Error = 3,
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
* WASM-exposed VM wrapper for running RISC-V kernels in the browser.
|
|
14
|
-
*/
|
|
13
|
+
|
|
15
14
|
declare class WasmVm {
|
|
16
15
|
free(): void;
|
|
17
16
|
[Symbol.dispose](): void;
|
|
@@ -68,8 +67,10 @@ interface InitOutput {
|
|
|
68
67
|
readonly wasmvm_network_status: (a: number) => number;
|
|
69
68
|
readonly wasmvm_new: (a: number, b: number) => [number, number, number];
|
|
70
69
|
readonly wasmvm_step: (a: number) => void;
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
70
|
+
readonly wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919: (a: number, b: number, c: any) => void;
|
|
71
|
+
readonly wasm_bindgen__closure__destroy__hb099e2ae98169675: (a: number, b: number) => void;
|
|
72
|
+
readonly wasm_bindgen__convert__closures_____invoke__hdce74b4265fa20da: (a: number, b: number) => void;
|
|
73
|
+
readonly wasm_bindgen__closure__destroy__h5a236a3e5f42ce16: (a: number, b: number) => void;
|
|
73
74
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
74
75
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
75
76
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -81,6 +82,7 @@ interface InitOutput {
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
85
|
+
|
|
84
86
|
/**
|
|
85
87
|
* Instantiates the given `module`, which can either be bytes or
|
|
86
88
|
* a precompiled `WebAssembly.Module`.
|