Remove NewObjectWithGroup
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Spinning this off from bug 1689413.
NewObjectWithGroup
was useful when we had allocation-site groups, because creating a new group based on Class + proto would use the default group so we needed a way to pass in another group. Now that groups are always determined by Class/proto/realm, there's no longer a difference in behavior.
NewObjectWithGroup
can be faster for some callers because it doesn't require looking up the group, but with groups going away soon in bug 1689413 that will no longer apply.
Assignee | ||
Comment 1•4 years ago
|
||
TI used allocation site groups here and passing around the group helped avoid
some overhead there.
Note that the group was passed only if the group's proto was the default proto
for the typed array class.
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D106594
Assignee | ||
Comment 3•4 years ago
|
||
The "more TI optimizations" comment refers to allocation site groups and the
ability to use singletons for large typed arrays. Both of these have since
been removed.
Depends on D106595
Assignee | ||
Comment 4•4 years ago
|
||
Worst-case this adds an ObjectGroup lookup, but that will go away when ObjectGroups
are removed and NewObjectWithGivenTaggedProto can use the NewObjectCache to bypass
that lookup.
Depends on D106596
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D106597
Assignee | ||
Comment 6•4 years ago
|
||
Also removes references to object parents from the comment. This was an old
SpiderMonkey 'feature'.
Depends on D106598
Comment 8•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/362cb95705e5
https://hg.mozilla.org/mozilla-central/rev/f0970b8ad3d0
https://hg.mozilla.org/mozilla-central/rev/1038b75f6357
https://hg.mozilla.org/mozilla-central/rev/0a2599125529
https://hg.mozilla.org/mozilla-central/rev/c57ee1144845
https://hg.mozilla.org/mozilla-central/rev/bed377ea722c
Description
•