Closed Bug 1696860 Opened 3 years ago Closed 3 years ago

Remove or clean up prototype splicing

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

JS_SplicePrototype is only used to initialize the global object's prototype. With the changes in bug 1689413 I think we can now remove this because JS_SetPrototype should be just as efficient.

Assignee: nobody → jdemooij
Status: NEW → ASSIGNED

After the ObjectGroup removal changes, prototype splicing and SetPrototype are
equivalent in that both (only) trigger a shape change for the new proto.

Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/97565326ca40
Remove prototype splicing code for the global object. r=iain
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: