Perform some clean-ups in (Shared)ArrayBuffer code
Categories
(Core :: JavaScript Engine, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox87 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(7 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 1692876 - Part 7: Use fixed- instead of reserved-slot accessors for SharedArrayObject. r=jandem!
48 bytes,
text/x-phabricator-request
|
Details | Review |
Noticed while working on bug 1692517:
- Remove dead code.
- Reduce indirections.
- Etc.
| Assignee | ||
Comment 1•4 years ago
|
||
Inline the various AnyArrayBufferXYZ() functions into the corresponding
ArrayBufferObjectMaybeShared methods.
Drive-by change:
Remove the buf variable in ArrayBufferObjectMaybeShared::dataPointerEither()
for consistency with the other ArrayBufferObjectMaybeShared methods.
| Assignee | ||
Comment 2•4 years ago
|
||
SharedArrayBufferObject doesn't define an isPreparedForAsmJS() method, so
this method was actually calling itself again.
Depends on D105202
| Assignee | ||
Comment 3•4 years ago
|
||
AsAnyArrayBuffer() was only called in a single place in "asm.js". Replace
that call by directly rejecting shared array buffers at the top of CheckBuffer.
Depends on D105203
| Assignee | ||
Comment 4•4 years ago
|
||
- Remove ArrayBufferObject::OwnsState enum.
- Remove method declarations without definitions.
Depends on D105204
| Assignee | ||
Comment 5•4 years ago
|
||
Remove functions which are entirely unused.
Depends on D105205
| Assignee | ||
Comment 6•4 years ago
|
||
Use the standard is/as() methods to test/convert (shared) array buffers.
Depends on D105206
| Assignee | ||
Comment 7•4 years ago
|
||
Use {g,s}etFixedSlot() instead of {g,s}etReservedSlot() for consistency with
non-shared array buffers and because it's slightly faster.
Depends on D105207
Comment 9•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fde304dd0f1f
https://hg.mozilla.org/mozilla-central/rev/8d2942ebab53
https://hg.mozilla.org/mozilla-central/rev/d6933e650527
https://hg.mozilla.org/mozilla-central/rev/e7612e478f48
https://hg.mozilla.org/mozilla-central/rev/fcd2d1b118f0
https://hg.mozilla.org/mozilla-central/rev/a4e32034b278
https://hg.mozilla.org/mozilla-central/rev/c754d0f1602d
Description
•