@threadedstack/wmd-web 0.1.42 → 0.1.43
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/RELEASE.json +6 -6
- package/guest/arm64/vm.wasm +0 -0
- package/package.json +3 -3
- package/src/boot.js +9 -0
- package/src/edge/pins.gen.js +1 -1
- package/wmdpack.wasm +0 -0
package/RELEASE.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wmd-web",
|
|
3
3
|
"version": "0.5.1",
|
|
4
|
-
"commit": "
|
|
4
|
+
"commit": "bbf57f5fec14de88961a7efba56d33c17ba7b4be",
|
|
5
5
|
"previous": null,
|
|
6
6
|
"decisions": [
|
|
7
7
|
"D-388",
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"D-660",
|
|
80
80
|
"D-661"
|
|
81
81
|
],
|
|
82
|
-
"vmSources": "
|
|
82
|
+
"vmSources": "3ac7f939f52426df0f781492d3ebf09069e84d44",
|
|
83
83
|
"guest": {
|
|
84
84
|
"arch": "arm64",
|
|
85
85
|
"files": {
|
|
86
86
|
"vm.wasm": {
|
|
87
|
-
"sha256": "
|
|
88
|
-
"bytes":
|
|
87
|
+
"sha256": "7f94f411f4041834981deedb5b8bb7f8961a0cbb8fa896e15ce5ee99a94a2853",
|
|
88
|
+
"bytes": 1567689
|
|
89
89
|
},
|
|
90
90
|
"Image": {
|
|
91
91
|
"sha256": "0f17a1a3941f8827396265906e7b23cd70a85212caec47c20915abd5a45e19fe",
|
|
@@ -175,11 +175,11 @@
|
|
|
175
175
|
"guest/arm64/Image-4k": "97ba5f7832895f2de857375d3802b9b016976258583613c4dbd903c271792e87",
|
|
176
176
|
"guest/arm64/features": "02693b8b6c099e10fdb7a092394102ee92971ce1e39d0d6e5327ff8be1d0ee74",
|
|
177
177
|
"guest/arm64/initramfs.cpio.gz": "1cac59f3a8bcf52a2b6b2d5769bf94dc237ec16c8b54df50686b4612bbe7bfef",
|
|
178
|
-
"guest/arm64/vm.wasm": "
|
|
178
|
+
"guest/arm64/vm.wasm": "7f94f411f4041834981deedb5b8bb7f8961a0cbb8fa896e15ce5ee99a94a2853",
|
|
179
179
|
"package.json": "7d43c05047d0a3ea56b4a7709f48a60de32e15c3bdf328d55435c46637981b40",
|
|
180
180
|
"src/base.js": "982f8e46dbb727ec542a494ebdb884ccd19a31ff4e091425b2d1fc01b0d4754a",
|
|
181
181
|
"src/blob.js": "bb2a2f0d87ce236280a7be2f246c926010dfe07f649c27da5e70d8eb5eaf7061",
|
|
182
|
-
"src/boot.js": "
|
|
182
|
+
"src/boot.js": "452c68ae107a2309cf32e4fd742e6e5b5ebf625b051937d5f08b664908cb413a",
|
|
183
183
|
"src/build/builder.js": "c7794ec15b183213228776c8f4fb0950dec7e621f948358da7de8f90ef4f70ec",
|
|
184
184
|
"src/build/context.js": "d38097c61dbdadc4d41290c010425a4422f499aba473fa2b83f2a5c41e543571",
|
|
185
185
|
"src/build/dockerfile.js": "5957fe3d4ac8ff8b312f980ee04bd1d98ad4373a61f9a33e02f1ff1108b6ea53",
|
package/guest/arm64/vm.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threadedstack/wmd-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/threadedstack/wmd-releases",
|
|
6
6
|
"repository": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"description": "Browser host for wmd's guest vm.wasm (Web Workers + shared memory + WASI preview1)",
|
|
11
11
|
"wmd": {
|
|
12
|
-
"tag": "v0.1.
|
|
13
|
-
"commit": "
|
|
12
|
+
"tag": "v0.1.43",
|
|
13
|
+
"commit": "bbf57f5fec14de88961a7efba56d33c17ba7b4be",
|
|
14
14
|
"web": "0.5.1"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
package/src/boot.js
CHANGED
|
@@ -543,6 +543,14 @@ export function engineOf(nav = globalThis.navigator) {
|
|
|
543
543
|
*/
|
|
544
544
|
export const BROWSER_TRACE_MAX = { blink: 32, gecko: 32, webkit: 32 }
|
|
545
545
|
|
|
546
|
+
/**
|
|
547
|
+
* S7.2 (#30): whether a translated block leaves for the next one with return_call_indirect (D-219) in each engine.
|
|
548
|
+
* false gives vm.wasm WMD_TAIL=0: every block returns to the dispatcher, which calls the next one in a loop. The
|
|
549
|
+
* engines differ by far in what a tail call costs once the module has many functions (the table of translated blocks
|
|
550
|
+
* does): docs/research/browser-speed-2026-11/s7/s7.md.
|
|
551
|
+
*/
|
|
552
|
+
export const BROWSER_TAIL = { blink: true, gecko: false, webkit: true }
|
|
553
|
+
|
|
546
554
|
/**
|
|
547
555
|
* W33: a browser can stop one vCPU's Worker for seconds. When it stops in the vCPU's idle wait
|
|
548
556
|
* with an interrupt due (on the 6.1 guest kernel, RCU's grace-period timer), vm.wasm's rescue
|
|
@@ -600,6 +608,7 @@ export function browserEnv(env, nav = globalThis.navigator, fused = fmaFuses())
|
|
|
600
608
|
if (isWebKit(nav) && !has('WMD_JIT_THRESHOLD')) add.push(`WMD_JIT_THRESHOLD=${WEBKIT_JIT_THRESHOLD}`)
|
|
601
609
|
if (isWebKit(nav) && !has('WMD_MIRROR_DEPTH')) add.push(`WMD_MIRROR_DEPTH=${WEBKIT_MIRROR_DEPTH}`) // D-551
|
|
602
610
|
if (!has('WMD_TRACE_MAX')) add.push(`WMD_TRACE_MAX=${BROWSER_TRACE_MAX[engineOf(nav)]}`)
|
|
611
|
+
if (!has('WMD_TAIL') && !BROWSER_TAIL[engineOf(nav)]) add.push('WMD_TAIL=0') // S7.2
|
|
603
612
|
if (!has('WMD_RESCUE_MS')) add.push(`WMD_RESCUE_MS=${BROWSER_RESCUE_MS}`)
|
|
604
613
|
if (!has('WMD_FMA_FUSED') && fused) add.push('WMD_FMA_FUSED=1') // D-539
|
|
605
614
|
if (engineOf(nav) === 'blink' && !has('WMD_RGN_DUP')) add.push('WMD_RGN_DUP=1') // D-542: proven in Chromium only
|
package/src/edge/pins.gen.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// The files of node in the sandboxed frame: the path under a source (the option edge: { sources } of bootWmd), the role the frame gives the file, its
|
|
3
3
|
// sha256 and its size. The page accepts a file only when it has exactly this sha256 and size. The notice files travel with the rest.
|
|
4
4
|
// EDGE_PACKAGE is the package that holds these files, for the {name} {version} {file} of a registry source's url (null: none named).
|
|
5
|
-
export const EDGE_PACKAGE = { name: '@threadedstack/wmd-node', version: '0.1.
|
|
5
|
+
export const EDGE_PACKAGE = { name: '@threadedstack/wmd-node', version: '0.1.43' }
|
|
6
6
|
export const EDGE_PINS = [
|
|
7
7
|
{ path: 'wmd_browser_bg.wasm', role: 'wasm', sha256: '1e3db7f2c5f4be0ee44e5f2c0205cf8ca11f906d9addd5512915fad4821661c2', size: 6334959 },
|
|
8
8
|
{ path: 'wmd_browser.js', role: 'glue', sha256: 'b389b072096881ba39b22cd705d3a230af02acc5409c61fb4f997d1081c4df6f', size: 75647 },
|
package/wmdpack.wasm
CHANGED
|
Binary file
|