Closed Bug 1656831 Opened 4 years ago Closed 4 years ago

Optimize Array pop/shift in CacheIR and Warp

Categories

(Core :: JavaScript Engine: JIT, task, P2)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.

Optimizes pop/shift on packed arrays. A new implementation was added that's used
by both CacheIR and Warp. This version is simpler, also supports pre-barriers,
and doesn't need a VM call as fallback.

This makes it possible for the next patch to check for non-extensible objects
as part of the other ObjectElements flags checks, instead of having to check
the BaseShape flag separately.

Attachment #9167614 - Attachment description: Bug 1656831 - Optimize Array.prototype.{pop,shift} in CacheIR and Warp. r?anba! → Bug 1656831 part 2 - Optimize Array.prototype.{pop,shift} in CacheIR and Warp. r?anba!
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3965e512a174
part 1 - Add NOT_EXTENSIBLE flag to ObjectElements. r=anba
https://hg.mozilla.org/integration/autoland/rev/bbdc75a42a13
part 2 - Optimize Array.prototype.{pop,shift} in CacheIR and Warp. r=anba
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: