Closed
Bug 1603496
Opened 6 years ago
Closed 6 years ago
Tidy up reference type type checks
Categories
(Core :: JavaScript: WebAssembly, task, P3)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
mozilla73
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: lth, Assigned: lth)
References
Details
Attachments
(1 file)
The code that checks that a given JS value that flows into wasm has the right type, or boxes the value in the case of an anyref, is fairly elaborate and is repeated several times; this is error-prone (indeed the nullref patch had an error that I discovered while working on the exnref patch). So abstract the test out and simplify the clients.
While we're in here, generalize some code that assumes that the only reference types are anyref and funcref.
![]() |
Assignee | |
Comment 1•6 years ago
|
||
Lift the code that checks JS values against reference types (and boxes anyref)
from all the places where it is repeated into a common function.
Clean up some code that assumes that the only reference types are anyref
and funcref.
![]() |
Assignee | |
Updated•6 years ago
|
Type: enhancement → task
Priority: -- → P3
Updated•6 years ago
|
Attachment #9115536 -
Attachment description: Bug 1603496 - abstract reference-type checking on JS values. r?rhunt → Bug 1603496 - abstract reference-type checking on JS values. r=rhunt
Pushed by lhansen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f23128d93320
abstract reference-type checking on JS values. r=rhunt
![]() |
||
Comment 3•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox73:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in
before you can comment on or make changes to this bug.
Description
•