Add support for .type property on WebAssembly.Memory,Table,Global
Categories
(Core :: JavaScript: WebAssembly, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox83 | --- | affected |
People
(Reporter: jtallon, Assigned: jtallon)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
Add support for the type reflections, this is outlined in this proposal https://github.com/WebAssembly/js-types
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
This adds a 'minimum' argument to the JS-API for the WebAssembly.Memory
and WebAssembly.Table objects. This parameter represents the minimum
size of the object which was specified by the 'initial' parameter. This
supports using either initial or minimum to specify the parameter.
This commit is part of the work to add type reflections to the
WebAssembly JS-API as specified in the js-types proposal.
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D85887
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Pushed by Ms2ger@gmail.com: https://hg.mozilla.org/integration/autoland/rev/db6f7a903c64 Add 'minimum' argument to WASM's Memory & Table r=lth
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/25468 for changes under testing/web-platform/tests
Comment 5•4 years ago
|
||
Backed out for spidermonkey bustage on /basic.js
backout: https://hg.mozilla.org/integration/autoland/rev/3d9dc8c617074278d1684735d0fd441eac250ddf
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=315328578&repo=autoland&lineNumber=12002
[task 2020-09-10T16:21:36.267Z] TEST-PASS | js/src/jit-test/tests/wasm/baseline-opt.js | Success (code 0, args "--disable-wasm-huge-memory") [0.2 s]
[task 2020-09-10T16:21:36.279Z] /builds/worker/checkouts/gecko/js/src/jit-test/lib/wasm.js:34:13 Error: Assertion failed: got true, expected false
[task 2020-09-10T16:21:36.279Z] Stack:
[task 2020-09-10T16:21:36.279Z] wasmFailValidateText@/builds/worker/checkouts/gecko/js/src/jit-test/lib/wasm.js:34:13
[task 2020-09-10T16:21:36.279Z] @/builds/worker/checkouts/gecko/js/src/jit-test/tests/wasm/basic.js:123:21
[task 2020-09-10T16:21:36.279Z] Exit code: 3
[task 2020-09-10T16:21:36.279Z] FAIL - wasm/basic.js
[task 2020-09-10T16:21:36.280Z] TEST-UNEXPECTED-FAIL | js/src/jit-test/tests/wasm/basic.js | /builds/worker/checkouts/gecko/js/src/jit-test/lib/wasm.js:34:13 Error: Assertion failed: got true, expected false (code 3, args "") [0.2 s]
[task 2020-09-10T16:21:36.280Z] INFO exit-status : 3
[task 2020-09-10T16:21:36.280Z] INFO timed-out : False
[task 2020-09-10T16:21:36.281Z] INFO stderr 2> /builds/worker/checkouts/gecko/js/src/jit-test/lib/wasm.js:34:13 Error: Assertion failed: got true, expected false
[task 2020-09-10T16:21:36.281Z] INFO stderr 2> Stack:
[task 2020-09-10T16:21:36.281Z] INFO stderr 2> wasmFailValidateText@/builds/worker/checkouts/gecko/js/src/jit-test/lib/wasm.js:34:13
[task 2020-09-10T16:21:36.281Z] INFO stderr 2> @/builds/worker/checkouts/gecko/js/src/jit-test/tests/wasm/basic.js:123:21
[task 2020-09-10T16:21:36.343Z] TEST-PASS | js/src/jit-test/tests/wasm/basic.js | Success (code 0, args "--wasm-compiler=ion") [0.2 s]
Also failing on mbu python/mozbuild/mozbuild/test/configure/lint.py::Lint::test_browser TEST-UNEXPECTED-FAIL - Bug 1664232
Upstream PR merged by moz-wptsync-bot
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
I've addressed the failing test and the python linting issue. It's now ready for merging.
Assignee | ||
Comment 8•4 years ago
|
||
This is part of adding type reflections to the WebAssembly JS-API. This
adds a new property on the WebAssembly.Memory, WebAssembly.Table &
WebAssembly.Global objects. It exposes the current type or the object in
a format which is compatible with the constructor for type's
constructor.
Pushed by btara@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f2317098f7e3 Add 'minimum' argument to WASM's Memory & Table r=lth
Comment 10•4 years ago
|
||
bugherder |
Comment 11•4 years ago
|
||
There's a second patch coming, and possibly more, so reopening for now.
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dff33d0b33c8 Add .type property to WASM Memory, Table & Global r=lth
Comment 13•4 years ago
|
||
bugherder |
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Comment 15•4 years ago
|
||
jtallon, do you have more work upcoming here or can this bug be closed?
Assignee | ||
Comment 16•4 years ago
|
||
I do have more to submit, specifically to add a WebAssembly.Function
type. I plan to submit it in the coming week or two.
Assignee | ||
Comment 17•3 years ago
|
||
Comment 18•3 years ago
|
||
Pushed by abutkovits@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f5dd640e9325 Change wasm Memory, Table & Global .type property to method r=rhunt
Comment 19•3 years ago
|
||
bugherder |
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/26927 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27482 for changes under testing/web-platform/tests
Upstream PR merged by jgraham
Upstream PR merged
Upstream PR merged by None
Comment 26•3 years ago
|
||
I'm going to file a separate bug for tracking the WebAssembly.Function work.
Updated•3 years ago
|
Comment 27•3 years ago
|
||
The bug for WebAssembly.Function work is now bug 1715275.
Updated•3 years ago
|
Description
•