Closed Bug 1724919 Opened 3 years ago Closed 3 years ago

Move TypedObject allocation out of NewObject

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(4 files)

Typed objects currently use the generic allocation path. It's simpler and faster to pull this out of there. We can then change the generic allocation path to only deal with native objects, which lets us remove a number of branches.

Perf-sensitive code and this is actually a lot simpler for many of the callers.

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8ce282254ee7 part 1 - Stop using Result<> in object allocation code. r=jonco https://hg.mozilla.org/integration/autoland/rev/7893ce886183 part 2 - Stop using the generic object allocation path for typed objects. r=jonco https://hg.mozilla.org/integration/autoland/rev/0f8022c5ac57 part 3 - Simplify NewObject* now that it's only used for native objects. r=jonco https://hg.mozilla.org/integration/autoland/rev/3a8d3b625ac3 part 4 - Assert objects are allocated with a background AllocKind when possible. r=jonco
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: