Skip to content

Commit f14ff99

Browse files
chrisdavidmillseqrioncaugner
authored
Split Wasm mutable globals into specific features (#29503)
* Add more accurate/specific BCd for Wasm mutable globals * Add instructions object level * Update webassembly/instructions/global.json Co-authored-by: Ryan Hunt <rhunt@eqrion.net> * Update webassembly/instructions/global.json Co-authored-by: Ryan Hunt <rhunt@eqrion.net> * Move global to definitions directory * update spec URLs to bikeshed version * apply auto fixes --------- Co-authored-by: Ryan Hunt <rhunt@eqrion.net> Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
1 parent 4a66810 commit f14ff99

5 files changed

Lines changed: 183 additions & 38 deletions

File tree

webassembly/api/Global.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,40 @@
9090
"standard_track": true,
9191
"deprecated": false
9292
}
93+
},
94+
"mutable": {
95+
"__compat": {
96+
"spec_url": "https://webassembly.github.io/spec/js-api/#dom-globaldescriptor-mutable",
97+
"tags": [
98+
"web-features:wasm-mutable-globals"
99+
],
100+
"support": {
101+
"chrome": {
102+
"version_added": "69"
103+
},
104+
"chrome_android": "mirror",
105+
"edge": "mirror",
106+
"firefox": {
107+
"version_added": "62"
108+
},
109+
"firefox_android": "mirror",
110+
"oculus": "mirror",
111+
"opera": "mirror",
112+
"opera_android": "mirror",
113+
"safari": {
114+
"version_added": "13.1"
115+
},
116+
"safari_ios": "mirror",
117+
"samsunginternet_android": "mirror",
118+
"webview_android": "mirror",
119+
"webview_ios": "mirror"
120+
},
121+
"status": {
122+
"experimental": false,
123+
"standard_track": true,
124+
"deprecated": false
125+
}
126+
}
93127
}
94128
},
95129
"value": {
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"webassembly": {
3+
"definitions": {
4+
"global": {
5+
"__compat": {
6+
"mdn_url": "https://developer.mozilla.org/docs/WebAssembly/Reference/Definitions/global",
7+
"spec_url": "https://webassembly.github.io/spec/core/bikeshed/#syntax-global",
8+
"support": {
9+
"chrome": {
10+
"version_added": "69"
11+
},
12+
"chrome_android": "mirror",
13+
"edge": "mirror",
14+
"firefox": {
15+
"version_added": "61"
16+
},
17+
"firefox_android": "mirror",
18+
"oculus": "mirror",
19+
"opera": "mirror",
20+
"opera_android": "mirror",
21+
"safari": {
22+
"version_added": "13.1"
23+
},
24+
"safari_ios": "mirror",
25+
"samsunginternet_android": "mirror",
26+
"webview_android": "mirror",
27+
"webview_ios": "mirror"
28+
},
29+
"status": {
30+
"experimental": false,
31+
"standard_track": true,
32+
"deprecated": false
33+
}
34+
},
35+
"mut": {
36+
"__compat": {
37+
"description": "`mut`: mutable globals",
38+
"spec_url": "https://webassembly.github.io/spec/core/bikeshed/#syntax-mut",
39+
"tags": [
40+
"web-features:wasm-mutable-globals"
41+
],
42+
"support": {
43+
"chrome": {
44+
"version_added": "74"
45+
},
46+
"chrome_android": "mirror",
47+
"edge": "mirror",
48+
"firefox": {
49+
"version_added": "61"
50+
},
51+
"firefox_android": "mirror",
52+
"oculus": "mirror",
53+
"opera": "mirror",
54+
"opera_android": "mirror",
55+
"safari": {
56+
"version_added": "13.1"
57+
},
58+
"safari_ios": "mirror",
59+
"samsunginternet_android": "mirror",
60+
"webview_android": "mirror",
61+
"webview_ios": "mirror"
62+
},
63+
"status": {
64+
"experimental": false,
65+
"standard_track": true,
66+
"deprecated": false
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"webassembly": {
3+
"instructions": {
4+
"global_get": {
5+
"__compat": {
6+
"description": "global.get",
7+
"spec_url": "https://webassembly.github.io/spec/core/bikeshed/#syntax-instr-variable",
8+
"support": {
9+
"chrome": {
10+
"version_added": "69"
11+
},
12+
"chrome_android": "mirror",
13+
"edge": "mirror",
14+
"firefox": {
15+
"version_added": "62"
16+
},
17+
"firefox_android": "mirror",
18+
"oculus": "mirror",
19+
"opera": "mirror",
20+
"opera_android": "mirror",
21+
"safari": {
22+
"version_added": "13.1"
23+
},
24+
"safari_ios": "mirror",
25+
"samsunginternet_android": "mirror",
26+
"webview_android": "mirror",
27+
"webview_ios": "mirror"
28+
},
29+
"status": {
30+
"experimental": false,
31+
"standard_track": true,
32+
"deprecated": false
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"webassembly": {
3+
"instructions": {
4+
"global_set": {
5+
"__compat": {
6+
"description": "global.set",
7+
"spec_url": "https://webassembly.github.io/spec/core/bikeshed/#syntax-instr-variable",
8+
"support": {
9+
"chrome": {
10+
"version_added": "69"
11+
},
12+
"chrome_android": "mirror",
13+
"edge": "mirror",
14+
"firefox": {
15+
"version_added": "62"
16+
},
17+
"firefox_android": "mirror",
18+
"oculus": "mirror",
19+
"opera": "mirror",
20+
"opera_android": "mirror",
21+
"safari": {
22+
"version_added": "13.1"
23+
},
24+
"safari_ios": "mirror",
25+
"samsunginternet_android": "mirror",
26+
"webview_android": "mirror",
27+
"webview_ios": "mirror"
28+
},
29+
"status": {
30+
"experimental": false,
31+
"standard_track": true,
32+
"deprecated": false
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}

webassembly/mutable-globals.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)