virtual-machine 0.1.3 → 0.1.5
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-S3CJQKBH.mjs → chunk-JU756VDZ.mjs} +49 -254
- package/build/cli.js +51 -318
- package/build/index.d.ts +24 -381
- package/build/index.js +51 -318
- package/build/index.mjs +3 -65
- package/build/{riscv_vm-B3MWUK6W.mjs → riscv_vm-TWECKOQY.mjs} +1 -3
- package/build/worker.js +22 -19
- 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 -6
|
@@ -206,91 +206,25 @@ 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__h3eb569f20d255f19(arg0, arg1) {
|
|
213
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h3eb569f20d255f19(arg0, arg1);
|
|
209
|
+
function wasm_bindgen__convert__closures_____invoke__h585740b37ab67ddc(arg0, arg1) {
|
|
210
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h585740b37ab67ddc(arg0, arg1);
|
|
214
211
|
}
|
|
215
212
|
function wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765(arg0, arg1, arg2) {
|
|
216
213
|
wasm.wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765(arg0, arg1, arg2);
|
|
217
214
|
}
|
|
218
|
-
function
|
|
219
|
-
wasm.
|
|
215
|
+
function wasm_bindgen__convert__closures_____invoke__hc7b58d5dcf05d71f(arg0, arg1, arg2) {
|
|
216
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc7b58d5dcf05d71f(arg0, arg1, arg2);
|
|
217
|
+
}
|
|
218
|
+
function wasm_bindgen__convert__closures_____invoke__he5e8d2a2af985b7e(arg0, arg1) {
|
|
219
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he5e8d2a2af985b7e(arg0, arg1);
|
|
220
220
|
}
|
|
221
221
|
var __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
222
|
-
var JitWorkerContextFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
223
|
-
}, unregister: () => {
|
|
224
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_jitworkercontext_free(ptr >>> 0, 1));
|
|
225
222
|
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
226
223
|
}, unregister: () => {
|
|
227
224
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmvm_free(ptr >>> 0, 1));
|
|
228
225
|
var WorkerStateFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
229
226
|
}, unregister: () => {
|
|
230
227
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_workerstate_free(ptr >>> 0, 1));
|
|
231
|
-
var JitWorkerContext = class _JitWorkerContext {
|
|
232
|
-
static __wrap(ptr) {
|
|
233
|
-
ptr = ptr >>> 0;
|
|
234
|
-
const obj = Object.create(_JitWorkerContext.prototype);
|
|
235
|
-
obj.__wbg_ptr = ptr;
|
|
236
|
-
JitWorkerContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
237
|
-
return obj;
|
|
238
|
-
}
|
|
239
|
-
__destroy_into_raw() {
|
|
240
|
-
const ptr = this.__wbg_ptr;
|
|
241
|
-
this.__wbg_ptr = 0;
|
|
242
|
-
JitWorkerContextFinalization.unregister(this);
|
|
243
|
-
return ptr;
|
|
244
|
-
}
|
|
245
|
-
free() {
|
|
246
|
-
const ptr = this.__destroy_into_raw();
|
|
247
|
-
wasm.__wbg_jitworkercontext_free(ptr, 0);
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Create a new JIT worker context with custom configuration.
|
|
251
|
-
*
|
|
252
|
-
* # Arguments
|
|
253
|
-
* * `min_block_size` - Minimum number of instructions for JIT compilation
|
|
254
|
-
* * `debug_wat` - Enable debug WAT output
|
|
255
|
-
* @param {number} min_block_size
|
|
256
|
-
* @param {boolean} debug_wat
|
|
257
|
-
* @returns {JitWorkerContext}
|
|
258
|
-
*/
|
|
259
|
-
static newWithConfig(min_block_size, debug_wat) {
|
|
260
|
-
const ret = wasm.jitworkercontext_newWithConfig(min_block_size, debug_wat);
|
|
261
|
-
return _JitWorkerContext.__wrap(ret);
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Create a new JIT worker context with default configuration.
|
|
265
|
-
*/
|
|
266
|
-
constructor() {
|
|
267
|
-
const ret = wasm.jitworkercontext_new();
|
|
268
|
-
this.__wbg_ptr = ret >>> 0;
|
|
269
|
-
JitWorkerContextFinalization.register(this, this.__wbg_ptr, this);
|
|
270
|
-
return this;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Compile a block from serialized request bytes.
|
|
274
|
-
*
|
|
275
|
-
* # Arguments
|
|
276
|
-
* * `request_bytes` - Bincode-serialized `CompileRequest`
|
|
277
|
-
*
|
|
278
|
-
* # Returns
|
|
279
|
-
* A JavaScript object with the compilation result:
|
|
280
|
-
* - On success: `{ success: true, pc: number, wasmBytes: Uint8Array }`
|
|
281
|
-
* - On unsuitable: `{ success: false, pc: number, status: 'unsuitable' }`
|
|
282
|
-
* - On error: `{ success: false, pc: number, status: 'error' }`
|
|
283
|
-
* @param {Uint8Array} request_bytes
|
|
284
|
-
* @returns {any}
|
|
285
|
-
*/
|
|
286
|
-
compile(request_bytes) {
|
|
287
|
-
const ptr0 = passArray8ToWasm0(request_bytes, wasm.__wbindgen_malloc);
|
|
288
|
-
const len0 = WASM_VECTOR_LEN;
|
|
289
|
-
const ret = wasm.jitworkercontext_compile(this.__wbg_ptr, ptr0, len0);
|
|
290
|
-
return ret;
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
if (Symbol.dispose) JitWorkerContext.prototype[Symbol.dispose] = JitWorkerContext.prototype.free;
|
|
294
228
|
var NetworkStatus = Object.freeze({
|
|
295
229
|
Disconnected: 0,
|
|
296
230
|
"0": "Disconnected",
|
|
@@ -347,33 +281,20 @@ var WasmVm = class _WasmVm {
|
|
|
347
281
|
wasm.wasmvm_print_status(this.__wbg_ptr, ptr0, len0);
|
|
348
282
|
}
|
|
349
283
|
/**
|
|
350
|
-
*
|
|
351
|
-
|
|
352
|
-
reenableJit() {
|
|
353
|
-
wasm.wasmvm_reenableJit(this.__wbg_ptr);
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* Get JIT statistics as JSON string.
|
|
357
|
-
* @returns {string}
|
|
284
|
+
* Get CPU count (from kernel-reported value).
|
|
285
|
+
* @returns {number}
|
|
358
286
|
*/
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
try {
|
|
363
|
-
const ret = wasm.wasmvm_getJitStats(this.__wbg_ptr);
|
|
364
|
-
deferred1_0 = ret[0];
|
|
365
|
-
deferred1_1 = ret[1];
|
|
366
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
367
|
-
} finally {
|
|
368
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
369
|
-
}
|
|
287
|
+
get_cpu_count() {
|
|
288
|
+
const ret = wasm.wasmvm_get_cpu_count(this.__wbg_ptr);
|
|
289
|
+
return ret >>> 0;
|
|
370
290
|
}
|
|
371
291
|
/**
|
|
372
|
-
*
|
|
373
|
-
* @
|
|
292
|
+
* Get system uptime in milliseconds (from kernel-reported value).
|
|
293
|
+
* @returns {bigint}
|
|
374
294
|
*/
|
|
375
|
-
|
|
376
|
-
wasm.
|
|
295
|
+
get_uptime_ms() {
|
|
296
|
+
const ret = wasm.wasmvm_get_uptime_ms(this.__wbg_ptr);
|
|
297
|
+
return BigInt.asUintN(64, ret);
|
|
377
298
|
}
|
|
378
299
|
/**
|
|
379
300
|
* Start worker threads for secondary harts (1..num_harts).
|
|
@@ -394,19 +315,22 @@ var WasmVm = class _WasmVm {
|
|
|
394
315
|
}
|
|
395
316
|
}
|
|
396
317
|
/**
|
|
397
|
-
*
|
|
398
|
-
*
|
|
318
|
+
* Get disk usage from the guest kernel.
|
|
319
|
+
* Returns (used_bytes, total_bytes).
|
|
320
|
+
* @returns {Array<any>}
|
|
399
321
|
*/
|
|
400
|
-
|
|
401
|
-
wasm.
|
|
322
|
+
get_disk_usage() {
|
|
323
|
+
const ret = wasm.wasmvm_get_disk_usage(this.__wbg_ptr);
|
|
324
|
+
return ret;
|
|
402
325
|
}
|
|
403
326
|
/**
|
|
404
|
-
*
|
|
405
|
-
*
|
|
327
|
+
* Get heap memory usage from the guest kernel.
|
|
328
|
+
* Returns (used_bytes, total_bytes).
|
|
329
|
+
* @returns {Array<any>}
|
|
406
330
|
*/
|
|
407
|
-
|
|
408
|
-
const ret = wasm.
|
|
409
|
-
return ret
|
|
331
|
+
get_heap_usage() {
|
|
332
|
+
const ret = wasm.wasmvm_get_heap_usage(this.__wbg_ptr);
|
|
333
|
+
return ret;
|
|
410
334
|
}
|
|
411
335
|
/**
|
|
412
336
|
* Get the current network connection status.
|
|
@@ -436,26 +360,6 @@ var WasmVm = class _WasmVm {
|
|
|
436
360
|
}
|
|
437
361
|
return _WasmVm.__wrap(ret[0]);
|
|
438
362
|
}
|
|
439
|
-
/**
|
|
440
|
-
* Clear JIT cache.
|
|
441
|
-
*/
|
|
442
|
-
clearJitCache() {
|
|
443
|
-
wasm.wasmvm_clearJitCache(this.__wbg_ptr);
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Enable or disable JIT compilation.
|
|
447
|
-
* @param {boolean} enabled
|
|
448
|
-
*/
|
|
449
|
-
setJitEnabled(enabled) {
|
|
450
|
-
wasm.wasmvm_setJitEnabled(this.__wbg_ptr, enabled);
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* Enable or disable JIT execution tracing.
|
|
454
|
-
* @param {boolean} enabled
|
|
455
|
-
*/
|
|
456
|
-
setJitTracing(enabled) {
|
|
457
|
-
wasm.wasmvm_setJitTracing(this.__wbg_ptr, enabled);
|
|
458
|
-
}
|
|
459
363
|
/**
|
|
460
364
|
* Get current memory usage (DRAM size) in bytes.
|
|
461
365
|
* @returns {bigint}
|
|
@@ -465,18 +369,13 @@ var WasmVm = class _WasmVm {
|
|
|
465
369
|
return BigInt.asUintN(64, ret);
|
|
466
370
|
}
|
|
467
371
|
/**
|
|
468
|
-
*
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
wasm.wasmvm_resetJitErrors(this.__wbg_ptr);
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* Get current JIT compilation threshold.
|
|
475
|
-
* @returns {number}
|
|
372
|
+
* Get the total disk capacity from attached VirtIO block devices.
|
|
373
|
+
* Returns total bytes across all block devices.
|
|
374
|
+
* @returns {bigint}
|
|
476
375
|
*/
|
|
477
|
-
|
|
478
|
-
const ret = wasm.
|
|
479
|
-
return ret
|
|
376
|
+
get_disk_capacity() {
|
|
377
|
+
const ret = wasm.wasmvm_get_disk_capacity(this.__wbg_ptr);
|
|
378
|
+
return BigInt.asUintN(64, ret);
|
|
480
379
|
}
|
|
481
380
|
/**
|
|
482
381
|
* Get the SharedArrayBuffer for external worker management.
|
|
@@ -487,13 +386,6 @@ var WasmVm = class _WasmVm {
|
|
|
487
386
|
const ret = wasm.wasmvm_get_shared_buffer(this.__wbg_ptr);
|
|
488
387
|
return ret;
|
|
489
388
|
}
|
|
490
|
-
/**
|
|
491
|
-
* Set JIT compilation threshold (min exec_count before compiling).
|
|
492
|
-
* @param {number} threshold
|
|
493
|
-
*/
|
|
494
|
-
setJitThreshold(threshold) {
|
|
495
|
-
wasm.wasmvm_setJitThreshold(this.__wbg_ptr, threshold);
|
|
496
|
-
}
|
|
497
389
|
/**
|
|
498
390
|
* Terminate all workers.
|
|
499
391
|
*/
|
|
@@ -506,43 +398,6 @@ var WasmVm = class _WasmVm {
|
|
|
506
398
|
disconnect_network() {
|
|
507
399
|
wasm.wasmvm_disconnect_network(this.__wbg_ptr);
|
|
508
400
|
}
|
|
509
|
-
/**
|
|
510
|
-
* Get number of cached JIT blocks.
|
|
511
|
-
* @returns {number}
|
|
512
|
-
*/
|
|
513
|
-
getJitCacheSize() {
|
|
514
|
-
const ret = wasm.wasmvm_getJitCacheSize(this.__wbg_ptr);
|
|
515
|
-
return ret >>> 0;
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Add a PC to the JIT blacklist.
|
|
519
|
-
* @param {bigint} pc
|
|
520
|
-
*/
|
|
521
|
-
blacklistJitBlock(pc) {
|
|
522
|
-
wasm.wasmvm_blacklistJitBlock(this.__wbg_ptr, pc);
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* Clear the JIT blacklist.
|
|
526
|
-
*/
|
|
527
|
-
clearJitBlacklist() {
|
|
528
|
-
wasm.wasmvm_clearJitBlacklist(this.__wbg_ptr);
|
|
529
|
-
}
|
|
530
|
-
/**
|
|
531
|
-
* Get JIT diagnostics as JSON string.
|
|
532
|
-
* @returns {string}
|
|
533
|
-
*/
|
|
534
|
-
getJitDiagnostics() {
|
|
535
|
-
let deferred1_0;
|
|
536
|
-
let deferred1_1;
|
|
537
|
-
try {
|
|
538
|
-
const ret = wasm.wasmvm_getJitDiagnostics(this.__wbg_ptr);
|
|
539
|
-
deferred1_0 = ret[0];
|
|
540
|
-
deferred1_1 = ret[1];
|
|
541
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
542
|
-
} finally {
|
|
543
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
401
|
/**
|
|
547
402
|
* Check how many bytes are pending in the UART output buffer.
|
|
548
403
|
* Useful for debugging output issues.
|
|
@@ -578,13 +433,6 @@ var WasmVm = class _WasmVm {
|
|
|
578
433
|
const ret = wasm.wasmvm_inject_network_packet(this.__wbg_ptr, packet);
|
|
579
434
|
return ret !== 0;
|
|
580
435
|
}
|
|
581
|
-
/**
|
|
582
|
-
* Enable TLB fast-path optimization.
|
|
583
|
-
* @param {boolean} enabled
|
|
584
|
-
*/
|
|
585
|
-
setJitTlbFastPath(enabled) {
|
|
586
|
-
wasm.wasmvm_setJitTlbFastPath(this.__wbg_ptr, enabled);
|
|
587
|
-
}
|
|
588
436
|
/**
|
|
589
437
|
* Signal that workers can start executing.
|
|
590
438
|
* Called by the main thread after hart 0 has finished initializing
|
|
@@ -602,21 +450,6 @@ var WasmVm = class _WasmVm {
|
|
|
602
450
|
const ret = wasm.wasmvm_extract_network_packet(this.__wbg_ptr);
|
|
603
451
|
return ret;
|
|
604
452
|
}
|
|
605
|
-
/**
|
|
606
|
-
* Check if JIT tracing is enabled.
|
|
607
|
-
* @returns {boolean}
|
|
608
|
-
*/
|
|
609
|
-
isJitTracingEnabled() {
|
|
610
|
-
const ret = wasm.wasmvm_isJitTracingEnabled(this.__wbg_ptr);
|
|
611
|
-
return ret !== 0;
|
|
612
|
-
}
|
|
613
|
-
/**
|
|
614
|
-
* Set maximum block size for JIT compilation.
|
|
615
|
-
* @param {number} size
|
|
616
|
-
*/
|
|
617
|
-
setJitMaxBlockSize(size) {
|
|
618
|
-
wasm.wasmvm_setJitMaxBlockSize(this.__wbg_ptr, size);
|
|
619
|
-
}
|
|
620
453
|
/**
|
|
621
454
|
* Set up an external network backend for packet bridging.
|
|
622
455
|
* This is used by the Node.js CLI to bridge packets between the native
|
|
@@ -631,32 +464,6 @@ var WasmVm = class _WasmVm {
|
|
|
631
464
|
throw takeFromExternrefTable0(ret[0]);
|
|
632
465
|
}
|
|
633
466
|
}
|
|
634
|
-
/**
|
|
635
|
-
* Get JIT cache hit ratio.
|
|
636
|
-
* @returns {number}
|
|
637
|
-
*/
|
|
638
|
-
getJitCacheHitRatio() {
|
|
639
|
-
const ret = wasm.wasmvm_getJitCacheHitRatio(this.__wbg_ptr);
|
|
640
|
-
return ret;
|
|
641
|
-
}
|
|
642
|
-
/**
|
|
643
|
-
* Get JIT execution ratio (JIT executions / total executions).
|
|
644
|
-
* Calculated from CPU's block cache statistics.
|
|
645
|
-
* @returns {number}
|
|
646
|
-
*/
|
|
647
|
-
getJitExecutionRatio() {
|
|
648
|
-
const ret = wasm.wasmvm_getJitCacheHitRatio(this.__wbg_ptr);
|
|
649
|
-
return ret;
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* Invalidate JIT cache for a specific address.
|
|
653
|
-
* @param {bigint} pc
|
|
654
|
-
* @returns {boolean}
|
|
655
|
-
*/
|
|
656
|
-
invalidateJitCacheAt(pc) {
|
|
657
|
-
const ret = wasm.wasmvm_invalidateJitCacheAt(this.__wbg_ptr, pc);
|
|
658
|
-
return ret !== 0;
|
|
659
|
-
}
|
|
660
467
|
/**
|
|
661
468
|
* Set the assigned IP address for the external network.
|
|
662
469
|
* Called when the native WebTransport addon receives an IP assignment.
|
|
@@ -667,14 +474,6 @@ var WasmVm = class _WasmVm {
|
|
|
667
474
|
const ret = wasm.wasmvm_set_external_network_ip(this.__wbg_ptr, ip_bytes);
|
|
668
475
|
return ret !== 0;
|
|
669
476
|
}
|
|
670
|
-
/**
|
|
671
|
-
* Get JIT cache memory usage in bytes.
|
|
672
|
-
* @returns {number}
|
|
673
|
-
*/
|
|
674
|
-
getJitCacheMemoryUsage() {
|
|
675
|
-
const ret = wasm.wasmvm_getJitCacheMemoryUsage(this.__wbg_ptr);
|
|
676
|
-
return ret >>> 0;
|
|
677
|
-
}
|
|
678
477
|
/**
|
|
679
478
|
* Get the number of pending RX packets.
|
|
680
479
|
* @returns {number}
|
|
@@ -708,13 +507,6 @@ var WasmVm = class _WasmVm {
|
|
|
708
507
|
const ret = wasm.wasmvm_is_external_network_connected(this.__wbg_ptr);
|
|
709
508
|
return ret !== 0;
|
|
710
509
|
}
|
|
711
|
-
/**
|
|
712
|
-
* Set interrupt check interval (0 = disabled).
|
|
713
|
-
* @param {number} interval
|
|
714
|
-
*/
|
|
715
|
-
setJitInterruptCheckInterval(interval) {
|
|
716
|
-
wasm.wasmvm_setJitInterruptCheckInterval(this.__wbg_ptr, interval);
|
|
717
|
-
}
|
|
718
510
|
/**
|
|
719
511
|
* Create a new VM instance and load a kernel (ELF or raw binary).
|
|
720
512
|
*
|
|
@@ -1285,6 +1077,10 @@ function __wbg_get_imports() {
|
|
|
1285
1077
|
return ret;
|
|
1286
1078
|
}, arguments);
|
|
1287
1079
|
};
|
|
1080
|
+
imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
|
|
1081
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1082
|
+
return ret;
|
|
1083
|
+
};
|
|
1288
1084
|
imports.wbg.__wbg_terminate_08a1236dd2e69da0 = function(arg0) {
|
|
1289
1085
|
arg0.terminate();
|
|
1290
1086
|
};
|
|
@@ -1313,30 +1109,30 @@ function __wbg_get_imports() {
|
|
|
1313
1109
|
return ret;
|
|
1314
1110
|
}, arguments);
|
|
1315
1111
|
};
|
|
1112
|
+
imports.wbg.__wbindgen_cast_1b00663567edb453 = function(arg0, arg1) {
|
|
1113
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h37d1b5fcb52cb1b9, wasm_bindgen__convert__closures_____invoke__h585740b37ab67ddc);
|
|
1114
|
+
return ret;
|
|
1115
|
+
};
|
|
1316
1116
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1317
1117
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1318
1118
|
return ret;
|
|
1319
1119
|
};
|
|
1320
|
-
imports.wbg.
|
|
1321
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1120
|
+
imports.wbg.__wbindgen_cast_22b48c66901f03d5 = function(arg0, arg1) {
|
|
1121
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf225e18fc5ab9bc1, wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765);
|
|
1322
1122
|
return ret;
|
|
1323
1123
|
};
|
|
1324
|
-
imports.wbg.
|
|
1325
|
-
const ret =
|
|
1124
|
+
imports.wbg.__wbindgen_cast_614f6ca309748622 = function(arg0, arg1) {
|
|
1125
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h37d1b5fcb52cb1b9, wasm_bindgen__convert__closures_____invoke__he5e8d2a2af985b7e);
|
|
1326
1126
|
return ret;
|
|
1327
1127
|
};
|
|
1328
|
-
imports.wbg.
|
|
1329
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1128
|
+
imports.wbg.__wbindgen_cast_bda31cc20c54b248 = function(arg0, arg1) {
|
|
1129
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h37d1b5fcb52cb1b9, wasm_bindgen__convert__closures_____invoke__hc7b58d5dcf05d71f);
|
|
1330
1130
|
return ret;
|
|
1331
1131
|
};
|
|
1332
1132
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1333
1133
|
const ret = arg0;
|
|
1334
1134
|
return ret;
|
|
1335
1135
|
};
|
|
1336
|
-
imports.wbg.__wbindgen_cast_dc00c1264d481122 = function(arg0, arg1) {
|
|
1337
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf225e18fc5ab9bc1, wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765);
|
|
1338
|
-
return ret;
|
|
1339
|
-
};
|
|
1340
1136
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1341
1137
|
const table = wasm.__wbindgen_externrefs;
|
|
1342
1138
|
const offset = table.grow(4);
|
|
@@ -1391,7 +1187,6 @@ async function __wbg_init(module_or_path) {
|
|
|
1391
1187
|
var riscv_vm_default = __wbg_init;
|
|
1392
1188
|
|
|
1393
1189
|
export {
|
|
1394
|
-
JitWorkerContext,
|
|
1395
1190
|
NetworkStatus,
|
|
1396
1191
|
WasmVm,
|
|
1397
1192
|
WorkerState,
|