Make it possible to allocate JSStrings with a refcounted StringBuffer in the shell
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(2 files, 1 obsolete file)
Add support for allocating JS strings with refcounted buffers to the newString
testing function.
Assignee | ||
Comment 1•4 months ago
|
||
Updated•4 months ago
|
Assignee | ||
Comment 2•4 months ago
|
||
This adds initial support for JS strings that have a refcounted mozilla::StringBuffer
instead of a raw malloc
buffer.
The newString
testing function has two new options. This lets us allocate a new JS string
with a new buffer or a new JS string that reuses the underlying string buffer.
After this we can start using this to replace external strings. We can also allocate more JS
strings with StringBuffer
s instead of raw malloc
buffers.
Updated•4 months ago
|
Updated•4 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Assignee | ||
Comment 3•3 months ago
|
||
We already avoid calling AssertJSStringBufferInCorrectArena
when creating a JS string with
a StringBuffer
, but we weren't handling this case when moving dependent strings.
This patch changes relocateNonInlineChars
to relocateBaseAndChars
so we can check
for this case there.
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/04287c05c925 part 1 - Add support for allocating JS strings with a refcounted StringBuffer. r=sfink https://hg.mozilla.org/integration/autoland/rev/bac40907d2f0 part 2 - Fix string arena assertion for dependent strings backed by a StringBuffer. r=sfink
Comment 5•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/04287c05c925
https://hg.mozilla.org/mozilla-central/rev/bac40907d2f0
Description
•