Refactor string and bigint creation methods to take gc::InitialHeap
Categories
(Core :: JavaScript Engine: JIT, task, P3)
Tracking
()
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.
Assignee | ||
Comment 1•3 years ago
|
||
First of all, swap the parameter order for bigint creation methods so that
failure label is last, as seems to be the convention elsewhere.
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D120489
Assignee | ||
Comment 3•3 years ago
|
||
Like the previous patch, make the failure label the last parameter.
Depends on D120490
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D120491
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/62bf5291afb8
https://hg.mozilla.org/mozilla-central/rev/19c48d58751e
https://hg.mozilla.org/mozilla-central/rev/fc379b04b606
https://hg.mozilla.org/mozilla-central/rev/1da1c6811098
Description
•