virtual-machine 0.3.4 → 0.3.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-5YNV5NOR.mjs → chunk-OAFU2U2M.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-7T3XPKKC.mjs → riscv_vm-G6IXQNON.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 +1 -1
|
@@ -206,17 +206,17 @@ if (!("encodeInto" in cachedTextEncoder)) {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
var WASM_VECTOR_LEN = 0;
|
|
209
|
-
function
|
|
210
|
-
wasm.
|
|
209
|
+
function wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d(arg0, arg1) {
|
|
210
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d(arg0, arg1);
|
|
211
|
+
}
|
|
212
|
+
function wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c(arg0, arg1, arg2) {
|
|
213
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c(arg0, arg1, arg2);
|
|
211
214
|
}
|
|
212
215
|
function wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2) {
|
|
213
216
|
wasm.wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2);
|
|
214
217
|
}
|
|
215
|
-
function
|
|
216
|
-
wasm.
|
|
217
|
-
}
|
|
218
|
-
function wasm_bindgen__convert__closures_____invoke__hc3bef96af6592eb1(arg0, arg1, arg2) {
|
|
219
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hc3bef96af6592eb1(arg0, arg1, arg2);
|
|
218
|
+
function wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171(arg0, arg1) {
|
|
219
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171(arg0, arg1);
|
|
220
220
|
}
|
|
221
221
|
var __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
222
222
|
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
@@ -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,30 +1310,30 @@ function __wbg_get_imports() {
|
|
|
1298
1310
|
return ret;
|
|
1299
1311
|
}, arguments);
|
|
1300
1312
|
};
|
|
1301
|
-
imports.wbg.
|
|
1302
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1313
|
+
imports.wbg.__wbindgen_cast_1e9af41a93765cab = function(arg0, arg1) {
|
|
1314
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h612f8e24953b61d5, wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf);
|
|
1303
1315
|
return ret;
|
|
1304
1316
|
};
|
|
1305
1317
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1306
1318
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1307
1319
|
return ret;
|
|
1308
1320
|
};
|
|
1309
|
-
imports.wbg.
|
|
1310
|
-
const ret =
|
|
1321
|
+
imports.wbg.__wbindgen_cast_46fd076aabb4c434 = function(arg0, arg1) {
|
|
1322
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58c972534bceec0, wasm_bindgen__convert__closures_____invoke__h6348bc2e0e4ff171);
|
|
1311
1323
|
return ret;
|
|
1312
1324
|
};
|
|
1313
|
-
imports.wbg.
|
|
1314
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1315
|
-
return ret;
|
|
1316
|
-
};
|
|
1317
|
-
imports.wbg.__wbindgen_cast_b33b7ab8ffafb5fe = function(arg0, arg1) {
|
|
1318
|
-
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h61d0a8be6dc7f9b5, wasm_bindgen__convert__closures_____invoke__hf75f3b5e3736d482);
|
|
1325
|
+
imports.wbg.__wbindgen_cast_a9e9434264708752 = function(arg0, arg1) {
|
|
1326
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58c972534bceec0, wasm_bindgen__convert__closures_____invoke__h65568fa7dcc5b42c);
|
|
1319
1327
|
return ret;
|
|
1320
1328
|
};
|
|
1321
1329
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1322
1330
|
const ret = arg0;
|
|
1323
1331
|
return ret;
|
|
1324
1332
|
};
|
|
1333
|
+
imports.wbg.__wbindgen_cast_ec2dedcc14bc0759 = function(arg0, arg1) {
|
|
1334
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58c972534bceec0, wasm_bindgen__convert__closures_____invoke__h927a3e68f2df660d);
|
|
1335
|
+
return ret;
|
|
1336
|
+
};
|
|
1325
1337
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1326
1338
|
const table = wasm.__wbindgen_externrefs;
|
|
1327
1339
|
const offset = table.grow(4);
|