mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-06-06 06:29:31 +00:00
#603: M1347489
This commit is contained in:
parent
a7f14df010
commit
17da05f15c
|
@ -1372,7 +1372,8 @@ class StringSegmentRange
|
||||||
{
|
{
|
||||||
// If malloc() shows up in any profiles from this vector, we can add a new
|
// If malloc() shows up in any profiles from this vector, we can add a new
|
||||||
// StackAllocPolicy which stashes a reusable freed-at-gc buffer in the cx.
|
// StackAllocPolicy which stashes a reusable freed-at-gc buffer in the cx.
|
||||||
Rooted<StringVector> stack;
|
using StackVector = js::TraceableVector<JSString*, 16>;
|
||||||
|
Rooted<StackVector> stack;
|
||||||
RootedLinearString cur;
|
RootedLinearString cur;
|
||||||
|
|
||||||
bool settle(JSString* str) {
|
bool settle(JSString* str) {
|
||||||
|
@ -1388,7 +1389,7 @@ class StringSegmentRange
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit StringSegmentRange(JSContext* cx)
|
explicit StringSegmentRange(JSContext* cx)
|
||||||
: stack(cx, StringVector(cx)), cur(cx)
|
: stack(cx, StackVector(cx)), cur(cx)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
MOZ_WARN_UNUSED_RESULT bool init(JSString* str) {
|
MOZ_WARN_UNUSED_RESULT bool init(JSString* str) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user