Closed Bug 1841113 Opened 8 months ago Closed 8 months ago

Implement ArrayBuffer.prototype.transfer() proposal

Categories

(Core :: JavaScript Engine, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox116 --- wontfix
firefox117 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(6 files)

No description provided.

Adds a basic implementation without any optimisations.

Depends on D182479

Add tests not covered by test262 and which are SpiderMonkey-specific, for
example different ArrayBuffer storage types and cross-compartment wrappers.

Depends on D182480

Adds an optimisation for malloc'ed ArrayBuffers to steal or realloc the
underlying data. Also improves the implementation when this optimisation can't
be used.

Depends on D182481

Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/8e414319d2bf
Part 1: Add pref for ArrayBuffer.prototype.transfer(). r=spidermonkey-reviewers,jandem
https://hg.mozilla.org/integration/autoland/rev/5fc7d804af3e
Part 2: Implement ArrayBuffer transfer proposal. r=spidermonkey-reviewers,jandem
https://hg.mozilla.org/integration/autoland/rev/05d609026ed7
Part 3: Add additional ArrayBuffer transfer proposal tests. r=spidermonkey-reviewers,jandem
https://hg.mozilla.org/integration/autoland/rev/41d2512a836c
Part 4: Steal or realloc malloced buffers. r=spidermonkey-reviewers,jandem
https://hg.mozilla.org/integration/autoland/rev/eb6b7b91f68c
Part 5: Enable ArrayBuffer transfer tests from test262. r=spidermonkey-reviewers,sfink
https://hg.mozilla.org/integration/autoland/rev/2ef473aa8aa4
Part 6: Update test262 for ArrayBuffer transfer tests. r=spidermonkey-reviewers,sfink
Keywords: dev-doc-needed
Regressions: 1842786

FF117 MDN docs work for this done/tracked in https://github.com/mdn/content/issues/28285

You need to log in before you can comment on or make changes to this bug.