зеркало из https://github.com/mozilla/gecko-dev.git
74af1d594a
The previous patch reimplemented QuoteString to use a `StringSegmentRange`, which should avoid mutating the inner parts of `JSRope`, while remaining fast on `JSAtom`-s. As the StringSegmentRange does not need to allocate with `ensureLinear`, then all the failures are reported by the `put` functions using the `GenericPrinter` mechanism, and the `release` functions of `Sprinter` would report the failure if any. Thus, there is no need for retuning a boolean value anymore from `QuoteString` and `JSONQuoteString`, while this is still necessary to check the returned value variant of `QuoteString` which returns `UniqueChars` by using the `release` function of `Sprinter`. Differential Revision: https://phabricator.services.mozilla.com/D183759 |
||
---|---|---|
.. | ||
examples | ||
loader | ||
public | ||
src | ||
xpconnect | ||
app.mozbuild | ||
ffi.configure | ||
moz.build | ||
moz.configure | ||
sub.configure |