Closed Bug 1805430 Opened 2 years ago Closed 2 years ago

Minor improvements for dictionary shapes

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(3 files)

Some minor follow-up (perf) improvements for allocating dictionary shapes after bug 1804253.

Severity: -- → N/A
Priority: -- → P2

This makes the code for dictionary shapes more similar to the other shapes and
simplifies the callers.

It's also more efficient because instead of cloning the shape and then mutating it,
the new shape now has the right contents from the start.

Adds a constructor that takes the object for which we want to create a new shape,
so that we can get rid of some roots.

Depends on D164571

Now that replaceShape also works for dictionary shapes, we don't need the isShared check anymore.

Depends on D164572

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6116446bee0d part 1 - Handle dictionary shapes in Shape::replaceShape too. r=jonco https://hg.mozilla.org/integration/autoland/rev/84cd838aa64c part 2 - Optimize generateNewDictionaryShape a bit. r=jonco https://hg.mozilla.org/integration/autoland/rev/5f0c1d530596 part 3 - Use replaceShape also for dictionary shapes in changeProperty. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: