Closed Bug 1761989 Opened 4 years ago Closed 3 years ago

Remove @@species from InitializeTypedArrayFromTypedArray

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: yulia, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Severity: -- → N/A
Priority: -- → P3
Severity: N/A → S3
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED

The caller is always passing %ArrayBuffer%, so we can simplify this code a bit.

Depends on D152263

All callers are passing nullptr for nonDefaultProto.

Depends on D152264

Remove AllocateArrayBuffer now that it's just an alias for maybeCreateArrayBuffer.

Also replace the no longer needed detached check with a release assertion.

Depends on D152265

The ArrayBuffer was only reified for the ArrayBuffer constructor optimisation
in GetBufferSpeciesConstructor. GetBufferSpeciesConstructor was removed in
part 1, so we no longer need this code, too.

Depends on D152266

Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c654e89d5a1a Part 1: Remove species lookup from InitializeTypedArrayFromTypedArray. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/c9020a758adb Part 2: Update spec step references. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/9b6d400760b4 Part 3: Remove unused ctor argument from AllocateArrayBuffer. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/bc53a3e681f8 Part 4: Remove unused nonDefaultProto argument from maybeCreateArrayBuffer. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/1e432ca231d6 Part 5: Remove AllocateArrayBuffer. r=mgaudet https://hg.mozilla.org/integration/autoland/rev/b3d4c6ee892f Part 6: Remove no longer needed ArrayBuffer reification. r=mgaudet
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: