Commit Graph

2988 Commits

Author SHA1 Message Date
Jeff Walden
6d28e8ffba Bug 1618038 - Implement support for wrapper-class comparisons in the innermost namespace containing each wrapper class, as ADL intended. Also simplify the operator implementations in certain minor ways. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D64242

--HG--
extra : moz-landing-system : lando
2020-03-10 02:01:28 +00:00
Narcis Beleuzu
a5a8b4f53e Backed out changeset f6898bd931c5 (bug 1618038) for SM bustages on AbstractScope.h . CLOSED TREE
--HG--
extra : rebase_source : 8b421404660589d79947f869497c37206ecab858
2020-03-09 22:53:43 +02:00
Jeff Walden
4ab1c168ae Bug 1618038 - Implement support for wrapper-class comparisons in the innermost namespace containing each wrapper class, as ADL intended. Also simplify the operator implementations in certain minor ways. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D64242

--HG--
extra : moz-landing-system : lando
2020-03-09 20:05:10 +00:00
Andrew McCreight
d5bf786a4d Bug 1619229, part 2 - Add InternalGCReason. r=sfink
This will let us check if a GC reason is internal to JS or not.

Differential Revision: https://phabricator.services.mozilla.com/D65648

--HG--
extra : moz-landing-system : lando
2020-03-08 23:20:44 +00:00
Andrew McCreight
d8ecfbc863 Bug 1619229, part 1 - Thread GC reason into the GC callback. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D65647

--HG--
extra : moz-landing-system : lando
2020-03-08 23:22:39 +00:00
André Bargull
fd2afd2541 Bug 1616882 - Part 2: Remove class fields option. r=tcampbell
Depends on D63506

Differential Revision: https://phabricator.services.mozilla.com/D63507

--HG--
extra : moz-landing-system : lando
2020-03-09 14:24:48 +00:00
André Bargull
3cfeb5044c Bug 1616882 - Part 1: Remove the 'await_fix' option. r=tcampbell,loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D63506

--HG--
extra : moz-landing-system : lando
2020-03-05 18:34:12 +00:00
Matthew Gaudet
e2f61fef35 Bug 1592103 - Defer allocation of Environment Shapes to Scope allocation time r=tcampbell
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
2020-03-04 23:34:41 +00:00
Jeff Walden
b8b7080914 Bug 1618038 - Move |MaybeRooted|, |FakeRooted|, and |FakeMutableHandle| to a fresh header. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D64236

--HG--
rename : js/src/gc/Rooting.h => js/src/gc/MaybeRooted.h
extra : moz-landing-system : lando
2020-03-02 12:24:35 +00:00
Tooru Fujisawa
2a9ea49124 Bug 1612515 - Part 5: Add ContextOptions.trySmoosh and --smoosh JS shell option. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D64164

--HG--
extra : moz-landing-system : lando
2020-02-28 14:17:59 +00:00
André Bargull
b2cf6a6e5e Bug 1617586 - Part 3: Use trunc instead of branching to use either floor or ceil. r=jwalden
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
2020-02-28 10:04:51 +00:00
André Bargull
77d747f17b Bug 1617586 - Part 1: Don't return -0 from ToInteger. r=jwalden
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
2020-02-27 13:10:48 +00:00
Andrew McCreight
4babb2b5ab Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

Differential Revision: https://phabricator.services.mozilla.com/D60197

--HG--
extra : moz-landing-system : lando
2020-02-27 17:39:15 +00:00
Ciure Andrei
00dd87f6f4 Backed out changeset d407a28318e6 (bug 1609815) for causing windows ming bustages CLOSED TREE
--HG--
extra : histedit_source : b2c748e31e0f6ba8fcf9960a336e0bbd361b07e6
2020-02-27 07:05:19 +02:00
Andrew McCreight
b197e1f783 Bug 1609815 - Remove Web Replay C++ implementation. r=jgilbert,jandem,gbrown
Patch by bhackett and jlaster. Also reviewed by mccr8.

Differential Revision: https://phabricator.services.mozilla.com/D60197

--HG--
extra : moz-landing-system : lando
2020-02-27 04:43:48 +00:00
Simon Giesecke
a37e47b760 Bug 1617863 - Make JS_ReadStructuredClone accept a const& to JSStructuredCloneData. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D64054

--HG--
extra : moz-landing-system : lando
2020-02-25 16:05:14 +00:00
Tom Ritter
0de066f265 Bug 1614008 - Disable eval checks for PAC Scripts r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D63558

--HG--
extra : moz-landing-system : lando
2020-02-24 19:37:41 +00:00
Sylvestre Ledru
ca6530131a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan,kvark
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D63787

--HG--
extra : moz-landing-system : lando
2020-02-24 15:33:38 +00:00
Lars T Hansen
5dd2428621 Bug 1609916 - Callback from SC to DOM on SAB cloning. r=luke
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
2020-02-19 09:25:52 +00:00
Jan de Mooij
5d00b77203 Bug 1614622 part 8 - Remove optimization tracking files. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D62877

--HG--
extra : moz-landing-system : lando
2020-02-17 09:17:46 +00:00
Tom Tung
0e080c84cd Bug 1613900 - P2 - Report original JS error message to StructuredCloneCallbacksError; r=baku,sfink
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
2020-02-14 13:45:47 +00:00
Tom Tung
5c2a4608ad Bug 1613900 - P1 - Throw the data clone error if COOP and COEP headers are not set when there is an shared memory object; r=baku,sfink
Differential Revision: https://phabricator.services.mozilla.com/D62232

--HG--
extra : moz-landing-system : lando
2020-02-13 08:37:43 +00:00
Tom Schuster
7c32ce1560 Bug 1615405 - eval(nonString) should not have observable side effects. r=tcampbell,baku
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
2020-02-14 15:05:27 +00:00
Bogdan Tara
2a147d1696 Backed out changeset bc387540075d (bug 1615405) on evilpie's request CLOSED TREE 2020-02-14 14:34:53 +02:00
Tom Schuster
140762b57e Bug 1615405 - eval(nonString) should not have observable side effects. r=tcampbell,baku
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
2020-02-14 12:26:21 +00:00
Ted Campbell
211e335615 Bug 1615143 - Eliminate TraceKind::LazyScript. r=jonco
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
2020-02-13 14:33:33 +00:00
Jan de Mooij
ae08c642db Bug 1614622 part 5 - Remove most optimization tracking storage code. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D62429

--HG--
extra : moz-landing-system : lando
2020-02-12 10:56:13 +00:00
Jan de Mooij
214eabb067 Bug 1614622 part 3 - Remove optimization tracking from profiler backend, remove forEach API methods. r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D62427

--HG--
extra : moz-landing-system : lando
2020-02-12 10:55:17 +00:00
André Bargull
3065c40f86 Bug 712939 - Part 7: Remove JS_STATIC_ASSERT. r=jwalden
Depends on D62278

Differential Revision: https://phabricator.services.mozilla.com/D62280

--HG--
extra : moz-landing-system : lando
2020-02-11 13:09:09 +00:00
Jan de Mooij
5600a9f9bc Bug 1613594 part 8 - Rename ionBuilder memory reporter to ionCompileTask. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D62015

--HG--
extra : moz-landing-system : lando
2020-02-10 08:50:51 +00:00
André Bargull
d5921c86ce Bug 1614306: Remove code paths for MSVC 2015. r=tcampbell
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
2020-02-10 18:39:06 +00:00
Andrea Marchesini
5419708e2a Bug 1613974 - Fix transfer-errors.window.js WPT failures, r=ttung,sfink
Differential Revision: https://phabricator.services.mozilla.com/D62056

--HG--
extra : moz-landing-system : lando
2020-02-07 19:13:15 +00:00
Andreea Pavel
217f810381 Backed out changeset 5a4eb6758bed (bug 1609916) for hazard bustages on a CLOSED TREE 2020-02-07 20:20:10 +02:00
Lars T Hansen
ccea2f09db Bug 1609916 - Callback from SC to DOM on SAB cloning. r=luke
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
2020-02-07 16:54:48 +00:00
Daniel Varga
0d5be0b49c Backed out changeset 1dc5c3074b57 (bug 1609916) for causing spidermonkey bustage
CLOSED TREE
2020-02-07 18:35:30 +02:00
Lars T Hansen
390dff3ee2 Bug 1609916 - Callback from SC to DOM on SAB cloning. r=luke
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
2020-02-07 15:42:37 +00:00
Asumu Takikawa
96d2a3958e Bug 1608772 - Enable BigInt <-> i64 interconversion by default in JS shell and Nightly r=lth
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
2020-02-06 15:47:34 +00:00
Andrea Marchesini
8220fd1ad9 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 6 - CloneDataPolicy.allowSharedMemoryObjects(), r=sfink,smaug
Differential Revision: https://phabricator.services.mozilla.com/D61276

--HG--
extra : moz-landing-system : lando
2020-02-06 13:49:28 +00:00
Andrea Marchesini
8b2679f24b Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 3 - update the scope after a writing, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61183

--HG--
extra : moz-landing-system : lando
2020-02-06 13:47:08 +00:00
Andrea Marchesini
b13b3b72d2 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 2 - CloneDataPolicy in writing, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61182

--HG--
extra : moz-landing-system : lando
2020-02-06 13:46:25 +00:00
Narcis Beleuzu
d259fe38d8 Backed out 13 changesets (bug 1611855) for wpt failures on /audioworklet-postmessage-sharedarraybuffer.https.html . CLOSED TREE
Backed out changeset 2b661d588f96 (bug 1611855)
Backed out changeset 16094fc92bc9 (bug 1611855)
Backed out changeset 3f89bbcaff92 (bug 1611855)
Backed out changeset a906501b6d92 (bug 1611855)
Backed out changeset 54738b88425d (bug 1611855)
Backed out changeset d27de910a6c0 (bug 1611855)
Backed out changeset 261902f6336d (bug 1611855)
Backed out changeset 380d83b61e62 (bug 1611855)
Backed out changeset 39aac60ebf5e (bug 1611855)
Backed out changeset 5ea099787376 (bug 1611855)
Backed out changeset d0f58871f838 (bug 1611855)
Backed out changeset e1be102310a9 (bug 1611855)
Backed out changeset 633357835540 (bug 1611855)

--HG--
rename : dom/base/test/test_postMessages_workers.html => dom/base/test/test_postMessages.html
2020-02-06 12:31:36 +02:00
Andrea Marchesini
f110ab6849 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 6 - CloneDataPolicy.allowSharedMemoryObjects(), r=sfink,smaug
Differential Revision: https://phabricator.services.mozilla.com/D61276

--HG--
extra : moz-landing-system : lando
2020-02-05 22:19:21 +00:00
Andrea Marchesini
94658a20fe Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 3 - update the scope after a writing, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61183

--HG--
extra : moz-landing-system : lando
2020-02-05 22:08:39 +00:00
Andrea Marchesini
87b1a8a547 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 2 - CloneDataPolicy in writing, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61182

--HG--
extra : moz-landing-system : lando
2020-02-05 22:07:34 +00:00
Ted Campbell
4f38cfda91 Bug 1613118 - Remove JS::EncodeInterpretedFunction r=nbp
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
2020-02-05 13:00:15 +00:00
Andrea Marchesini
c4cb10712a Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 3 - CloneDataPolicy, r=smaug,sfink,lth
Differential Revision: https://phabricator.services.mozilla.com/D60485

--HG--
extra : moz-landing-system : lando
2020-01-24 16:31:21 +00:00
Noemi Erli
e4b712dcb8 Backed out 4 changesets (bug 1609990) for causing Spidermonkey rust bustage CLOSED TREE
Backed out changeset 81a77bb3772c (bug 1609990)
Backed out changeset d4524885cb97 (bug 1609990)
Backed out changeset c95aac908332 (bug 1609990)
Backed out changeset bae3e50ab64d (bug 1609990)
2020-01-24 18:13:24 +02:00
Andrea Marchesini
ac6024f408 Bug 1609990 - AgentCluster comparison in MessagePort and BroadcastChannel - part 3 - CloneDataPolicy, r=smaug,sfink,lth
Differential Revision: https://phabricator.services.mozilla.com/D60485

--HG--
extra : moz-landing-system : lando
2020-01-24 15:25:24 +00:00
Andrea Marchesini
0077863f8e Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-24 07:57:56 +00:00
Andrea Marchesini
8c690f0963 Bug 1605566 - MessagePort + wasm - part 1 - access scope via method in StructuredClone code, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59612

--HG--
extra : moz-landing-system : lando
2020-01-24 07:57:28 +00:00