std::tolower can be safely replaced with js::unicode::ToLowerCase in both contexts.
Differential Revision: https://phabricator.services.mozilla.com/D26510
--HG--
extra : moz-landing-system : lando
Provide js::IsAsciiPrintable as a safe alternative to std::isprint, which doesn't
lead to UB for inputs not representable as `unsigned char` and which also doesn't
depend on the current locale.
Differential Revision: https://phabricator.services.mozilla.com/D26509
--HG--
extra : moz-landing-system : lando
mozilla::IsAsciiDigit is equivalent to std::isdigit, except it's not necessary
to worry about UB when calling it with an input which can't be represented as
`unsigned char`.
Differential Revision: https://phabricator.services.mozilla.com/D26508
--HG--
extra : moz-landing-system : lando
js::AsciiDigitToNumber is an optimised version of mozilla::AsciiAlphanumericToNumber
for known ASCII digit-only cases, which avoids the extra comparisons for ASCII
alphabetical characters. This ensures replacing JS_UNDEC with js::AsciiDigitToNumber
still emits the same assembly.
Differential Revision: https://phabricator.services.mozilla.com/D26507
--HG--
extra : moz-landing-system : lando
JS7_ISOCT and JS7_UNOCT were only used in TokenStream, so the new functions were
directly moved into that file instead of adding them to util/Text.h.
Differential Revision: https://phabricator.services.mozilla.com/D26506
--HG--
extra : moz-landing-system : lando
Clang and GCC generate slightly better assembly when IsAsciiHexDigit is called,
because the `cmp` instruction for the `< 127` check in JS7_ISHEX is no longer
emitted.
Differential Revision: https://phabricator.services.mozilla.com/D26505
--HG--
extra : moz-landing-system : lando
This avoids a call to std::tolower, making hex-conversions slightly faster.
Differential Revision: https://phabricator.services.mozilla.com/D26504
--HG--
extra : moz-landing-system : lando
The scalar-type matches TypeIDOfType<T>::id, which is a constant, so it's not
necessary to recompute the type for each call to canConvertInfallibly.
Differential Revision: https://phabricator.services.mozilla.com/D26117
--HG--
extra : moz-landing-system : lando
moves where the VideoConduit related telemetry is recorded, so that non-standard stats can be removed from the stats report
Differential Revision: https://phabricator.services.mozilla.com/D22259
--HG--
extra : moz-landing-system : lando
With tasks able to access the hgmointernal config from a Taskcluster
secret, we can now add functionality to `run-task` to support checking
out from the private hg service. Here we add add a `resolve_checkout_url`
function which takes the base/head repository URLs and determines
whether we should clone from the public or private service, returning
the resolved URL. The function pulls down the secret and checks that
the region the task is executing in is in the set of supported regions.
Then we generate a random number and default to the public service if
the number is lower than our "rate". If all the above conditions are
met, we replace `hg.mozilla.org` with the resolved domain name for the
given region.
We add a call to this function to `collect_vcs_options`, and skip
resolving the private URL if we aren't performing a checkout from
within `run-task`.
Differential Revision: https://phabricator.services.mozilla.com/D25002
--HG--
extra : moz-landing-system : lando
This is needed to open an SCO channel and do proper (low-latency) bluetooth
communication when doing a call using WebRTC, or simply recording local audio in
a web application.
I think this is more of a GeckoView thing, but I'm a bit fuzzy on the
distinction, maybe it's the wrong manifest. I tested using Fennec.
Differential Revision: https://phabricator.services.mozilla.com/D21734
--HG--
extra : moz-landing-system : lando
The next patches want to make some changes to the ICEntries version. The
simplest way to do that is by removing the abstraction.
Differential Revision: https://phabricator.services.mozilla.com/D26675
--HG--
extra : moz-landing-system : lando
This lets us OSR from Baseline Interpreter => Baseline Compiler code in the
prologue.
Differential Revision: https://phabricator.services.mozilla.com/D26532
--HG--
extra : moz-landing-system : lando
Also simplifies GetPcScript a bit by using an early return instead of a nullptr
retAddr.
Differential Revision: https://phabricator.services.mozilla.com/D26519
--HG--
extra : moz-landing-system : lando