This changes the order of the arguments to ScopeCreationData's constructor to
handle the fact that EnvironmentShapeCreationData, because it contains a
Variant, is MOZ_NON_PARAM, and therefore cannot be passed as an argument, or
contain a default argument.
Differential Revision: https://phabricator.services.mozilla.com/D52778
--HG--
extra : moz-landing-system : lando
Use C++11's `trunc()` function instead of manually branching for negative values.
Differential Revision: https://phabricator.services.mozilla.com/D64029
--HG--
extra : moz-landing-system : lando
Changes ToInteger to return +0 instead of -0 and updates two callers which were
already performing the -0 to +0 conversion. Also changes NumberIsInt32 to
NumberEqualsInt32 in `atomics_isLockFree`, because we no longer need to care
about handling -0 in this function.
Differential Revision: https://phabricator.services.mozilla.com/D64027
--HG--
extra : moz-landing-system : lando
When structured clone reads a SAB and creates a new SAB object, or
when it serializes a SAB onto a channel, call a callback that lets the
embedder know. The embedder can then adjust its policy. Concretely,
we want to allow the browser to serialize threads in a process that
uses JS shared memory.
Note, for WebAssembly.Memory, reading and writing are delegated to the
cloning operations for SAB, so no special handling is needed.
Differential Revision: https://phabricator.services.mozilla.com/D61455
--HG--
extra : moz-landing-system : lando
The idea is to propagate error messages defined in js.msg to
StructuredCloneHolder and throw it with a data clone error later. So that
developers can still understand the reason why serialization/deserialization
fails and we don't need to implement two similar set of error messages on JS and
DOM sides.
Note that this patch gave up the original idea (report error message to
console), but developers can stil get the error message by catching the
exception.
Differential Revision: https://phabricator.services.mozilla.com/D62260
--HG--
extra : moz-landing-system : lando
After this change we can restrict contentSecurityPolicyAllows callbacks to just strings, because everything
else is excluded before calling that callback.
Differential Revision: https://phabricator.services.mozilla.com/D62794
--HG--
extra : moz-landing-system : lando
After this change we can restrict contentSecurityPolicyAllows callbacks to just strings, because everything
else is excluded before calling that callback.
Differential Revision: https://phabricator.services.mozilla.com/D62794
--HG--
extra : moz-landing-system : lando
Now that JSScript and LazyScript share a trace method, we can use a single
TraceKind within the GC. To acheive this we also must remove eager marking of
LazyScripts.
Differential Revision: https://phabricator.services.mozilla.com/D62681
--HG--
extra : moz-landing-system : lando
Verified MSVC 2019+ generates the same code for `Upper32Of` when a right-shift is used.
Differential Revision: https://phabricator.services.mozilla.com/D62241
--HG--
extra : moz-landing-system : lando
When structured clone reads a SAB and creates a new SAB object, or
when it serializes a SAB onto a channel, call a callback that lets the
embedder know. The embedder can then adjust its policy. Concretely,
we want to allow the browser to serialize threads in a process that
uses JS shared memory.
Note, for WebAssembly.Memory, reading and writing are delegated to the
cloning operations for SAB, so no special handling is needed.
Differential Revision: https://phabricator.services.mozilla.com/D61455
--HG--
extra : moz-landing-system : lando
When structured clone reads a SAB and creates a new SAB object, or
when it serializes a SAB onto a channel, call a callback that lets the
embedder know. The embedder can then adjust its policy. Concretely,
we want to allow the browser to serialize threads in a process that
uses JS shared memory.
Note, for WebAssembly.Memory, reading and writing are delegated to the
cloning operations for SAB, so no special handling is needed.
Differential Revision: https://phabricator.services.mozilla.com/D61455
--HG--
extra : moz-landing-system : lando
This revision enables the Wasm BigInt<->I64 conversion proposal by default in the JS shell and Nightly.
Some tests are moved around to match the defaults and metadata for WPT wasm tests are set.
Differential Revision: https://phabricator.services.mozilla.com/D61762
--HG--
extra : moz-landing-system : lando
This has no remaining uses and would need to be rewritten in future so simply
remove it instead.
Differential Revision: https://phabricator.services.mozilla.com/D54009
--HG--
extra : moz-landing-system : lando