Closed Bug 1721639 Opened 3 years ago Closed 3 years ago

Refactor string and bigint creation methods to take gc::InitialHeap

Categories

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

task

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(4 files)

Currently, the macroassembler methods to create strings and bigints take a boolean to indicate whether to allocate in the nursery, whereas the object creation methods take a gc::InitialHeap parameter.

To enable pretenuring of these allocations (and for general consistency) we can refactor so that everything takes an InitialHeap.

First of all, swap the parameter order for bigint creation methods so that
failure label is last, as seems to be the convention elsewhere.

Like the previous patch, make the failure label the last parameter.

Depends on D120490

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62bf5291afb8 Make failure label last parameter for bigint creation methods r=jandem https://hg.mozilla.org/integration/autoland/rev/19c48d58751e Replace boolean with gc::InitialHeap parameter for bigint creation methods r=jandem https://hg.mozilla.org/integration/autoland/rev/fc379b04b606 Make failure label last parameter for string creation methods r=jandem https://hg.mozilla.org/integration/autoland/rev/1da1c6811098 Replace boolean with gc::InitialHeap parameter for string creation methods r=jandem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: