virtual-machine 0.3.5 → 0.3.7
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-JCV7UTGP.mjs → chunk-P2CNJWOJ.mjs} +29 -17
- package/build/cli.js +30 -18
- package/build/index.d.ts +13 -4
- package/build/index.js +30 -18
- package/build/index.mjs +3 -3
- package/build/node-worker.js +30 -18
- package/build/{riscv_vm-AOXNVK6L.mjs → riscv_vm-ZETNI7VC.mjs} +1 -1
- package/build/worker.js +18 -18
- package/native/index.mjs +2 -0
- 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
|
@@ -206,18 +206,18 @@ if (!("encodeInto" in cachedTextEncoder)) {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
var WASM_VECTOR_LEN = 0;
|
|
209
|
-
function
|
|
210
|
-
wasm.
|
|
211
|
-
}
|
|
212
|
-
function wasm_bindgen__convert__closures_____invoke__h5751b024b7e391df(arg0, arg1) {
|
|
213
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h5751b024b7e391df(arg0, arg1);
|
|
214
|
-
}
|
|
215
|
-
function wasm_bindgen__convert__closures_____invoke__h6ec9ab814d2a1268(arg0, arg1, arg2) {
|
|
216
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h6ec9ab814d2a1268(arg0, arg1, arg2);
|
|
209
|
+
function wasm_bindgen__convert__closures_____invoke__habac7f45f47f07cd(arg0, arg1) {
|
|
210
|
+
wasm.wasm_bindgen__convert__closures_____invoke__habac7f45f47f07cd(arg0, arg1);
|
|
217
211
|
}
|
|
218
212
|
function wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2) {
|
|
219
213
|
wasm.wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2);
|
|
220
214
|
}
|
|
215
|
+
function wasm_bindgen__convert__closures_____invoke__hb64a410b6844a455(arg0, arg1, arg2) {
|
|
216
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hb64a410b6844a455(arg0, arg1, arg2);
|
|
217
|
+
}
|
|
218
|
+
function wasm_bindgen__convert__closures_____invoke__h6be6a00e824135f7(arg0, arg1) {
|
|
219
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6be6a00e824135f7(arg0, arg1);
|
|
220
|
+
}
|
|
221
221
|
var __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
222
222
|
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
223
223
|
}, unregister: () => {
|
|
@@ -524,6 +524,18 @@ var WasmVm = class _WasmVm {
|
|
|
524
524
|
disconnect_network() {
|
|
525
525
|
wasm.wasmvm_disconnect_network(this.__wbg_ptr);
|
|
526
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* Get the dirty rectangle from the last frame flush.
|
|
529
|
+
*
|
|
530
|
+
* Returns [min_x, min_y, max_x, max_y] or None if no dirty region.
|
|
531
|
+
* The kernel writes this to 0x80FF_FFE0 each time it flushes the framebuffer.
|
|
532
|
+
* This allows the browser to do partial texture uploads for better performance.
|
|
533
|
+
* @returns {Uint32Array | undefined}
|
|
534
|
+
*/
|
|
535
|
+
get_gpu_dirty_rect() {
|
|
536
|
+
const ret = wasm.wasmvm_get_gpu_dirty_rect(this.__wbg_ptr);
|
|
537
|
+
return ret;
|
|
538
|
+
}
|
|
527
539
|
/**
|
|
528
540
|
* Check how many bytes are pending in the UART output buffer.
|
|
529
541
|
* Useful for debugging output issues.
|
|
@@ -1298,24 +1310,24 @@ function __wbg_get_imports() {
|
|
|
1298
1310
|
return ret;
|
|
1299
1311
|
}, arguments);
|
|
1300
1312
|
};
|
|
1301
|
-
imports.wbg.
|
|
1302
|
-
const ret =
|
|
1313
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1314
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1303
1315
|
return ret;
|
|
1304
1316
|
};
|
|
1305
|
-
imports.wbg.
|
|
1306
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1317
|
+
imports.wbg.__wbindgen_cast_a107920d366c625a = function(arg0, arg1) {
|
|
1318
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h093600eb5d92ffd6, wasm_bindgen__convert__closures_____invoke__habac7f45f47f07cd);
|
|
1307
1319
|
return ret;
|
|
1308
1320
|
};
|
|
1309
|
-
imports.wbg.
|
|
1310
|
-
const ret =
|
|
1321
|
+
imports.wbg.__wbindgen_cast_a9e9434264708752 = function(arg0, arg1) {
|
|
1322
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h093600eb5d92ffd6, wasm_bindgen__convert__closures_____invoke__hb64a410b6844a455);
|
|
1311
1323
|
return ret;
|
|
1312
1324
|
};
|
|
1313
|
-
imports.wbg.
|
|
1314
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1325
|
+
imports.wbg.__wbindgen_cast_abf350a606387627 = function(arg0, arg1) {
|
|
1326
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h612f8e24953b61d5, wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf);
|
|
1315
1327
|
return ret;
|
|
1316
1328
|
};
|
|
1317
1329
|
imports.wbg.__wbindgen_cast_b33b7ab8ffafb5fe = function(arg0, arg1) {
|
|
1318
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
1330
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h093600eb5d92ffd6, wasm_bindgen__convert__closures_____invoke__h6be6a00e824135f7);
|
|
1319
1331
|
return ret;
|
|
1320
1332
|
};
|
|
1321
1333
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|