Commit Graph

70595 Commits

Author SHA1 Message Date
Tooru Fujisawa
56585dc81e Bug 1543843 - Add constructors to JSPropertySpec and inner structs/unions. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D27277

--HG--
extra : moz-landing-system : lando
2019-04-26 01:01:15 +00:00
Ashley Hauck
f416b6e500 Bug 1547035 - Handle AssignmentNode->BinaryNode change from bug 1535471 in Reflect.parse. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D28890

--HG--
extra : moz-landing-system : lando
2019-04-25 19:32:34 +00:00
Nicolas B. Pierron
15e75bcd4d Bug 1521158 - Invalidate ARM64 caches by increments of at most 32 bytes instead of increments of cache lines. r=sstangl
Differential Revision: https://phabricator.services.mozilla.com/D28827

--HG--
extra : moz-landing-system : lando
2019-04-25 16:39:14 +00:00
Gurzau Raul
71e35400ef Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-25 19:30:38 +03:00
Jan de Mooij
cae806b2c7 Bug 1546934 - Change LCov code coverage machinery to use a process-wide flag. r=nbp
This will simplify the Baseline Interpreter work.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 13:35:55 +00:00
Julian Seward
41aaeae2e3 Bug 1546157 - Wasm/Baseline: ensure stackmaps take into account reftyped locals. r=lhansen.
Prior to this patch, Wasm/Baseline's stackmap creation logic failed to take
into account reftyped locals which are not also parameters.  This patch fixes
that.  It also adds a new test that reliably exposes the failure on all 4
primary targets.  The test case also runs on Ion, and it appears that Wasm/Ion
does not suffer from an analogous problem.

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

--HG--
extra : rebase_source : 893bb5ad7e2028a29385f4624472d63defe3af19
2019-04-24 13:43:43 +02:00
Bogdan Tara
f25c071146 Backed out changeset d0eebfb3d916 (bug 1545751) for spidermonkey builds bustages CLOSED TREE 2019-04-25 18:20:18 +03:00
Adam Holm
322aae31af Bug 1492995 - Adding CacheIR support for String + Boolean. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D27376

--HG--
extra : moz-landing-system : lando
2019-04-25 01:07:55 +00:00
David Teller
5f3821de3e Bug 1545751 - In BinAST, pass Context while parsing;r=arai
The Context 0.1 format specifies that the (de)compression of nodes is determined by:
- its node type;
- its parent type;
- the index in the parent node;
- whether the node is an element of an array.

This patch modifies the parser generator to pass the information during parsing.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 08:07:57 +00:00
Boris Zbarsky
5f0b0bbe8e Fix outdated comments explaining XPCWrappedJS lifetime. No bug. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D28220

--HG--
extra : moz-landing-system : lando
2019-04-24 20:54:20 +00:00
Brindusan Cristian
b3b1ca15aa Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
2019-04-25 01:43:17 +03:00
Brindusan Cristian
f92b05e5f0 Merge inbound to mozilla-central. a=merge
--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
2019-04-25 00:54:01 +03:00
Edwin Gao
162eb47938 Bug 1546732 - enable jittest for windows10-aarch64 r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D28704

--HG--
extra : moz-landing-system : lando
2019-04-24 21:40:40 +00:00
André Bargull
5746b7fadb Bug 1544364: Throw an error when calling the transplant test-function on a sandbox global. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D28475

--HG--
extra : moz-landing-system : lando
2019-04-24 10:56:44 +00:00
Ashley Hauck
9de3829e94 Bug 1535471 - Use JSOP_INITPROP for field initializers. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D27543

--HG--
extra : moz-landing-system : lando
2019-04-24 19:41:37 +00:00
Ashley Hauck
c3d06144e6 Bug 1542406 - Restrict contents of direct eval in fields. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D27152

--HG--
extra : moz-landing-system : lando
2019-04-24 18:45:13 +00:00
Ashley Hauck
6629fbc495 Bug 1540787 - Always declare .this in constructors. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D27783

--HG--
extra : moz-landing-system : lando
2019-04-24 18:50:37 +00:00
Ashley Hauck
395365c85a Bug 1541641 - Emit JSOP_TOID for computed field keys. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D27549

--HG--
extra : moz-landing-system : lando
2019-04-24 18:02:54 +00:00
André Bargull
1b38a811a1 Bug 1545354: Don't try to reject an already resolved async function promise on OOM. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D28476

--HG--
extra : moz-landing-system : lando
2019-04-23 16:53:38 +00:00
André Bargull
cf3c088f59 Bug 1546376 - Part 3: Use Max() instead of duplicating calls. r=jandem
Depends on D28482

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:59:56 +00:00
André Bargull
4346ee7d76 Bug 1546376 - Part 2: Don't expose PRMJ_FormatTime and PRMJTime when not used. r=jandem
They are only used in non-Intl resp. system ICU builds in jsdate.cpp.

Depends on D28481

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

--HG--
extra : moz-landing-system : lando
2019-04-24 10:58:39 +00:00
André Bargull
9487dc5489 Bug 1546376 - Part 1: Remove Stopwatch.h. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D28481

--HG--
extra : moz-landing-system : lando
2019-04-24 10:57:27 +00:00
Benjamin Bouvier
278e4737f1 Bug 1546439: Allow showing the optimized IR of a Cranelift-compiled function; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D28513

--HG--
extra : rebase_source : 6b1122c13115848b3e56206fe9342b0aa0c7b028
extra : histedit_source : 819ad190e9fc45a568d5e4d41522432cce2f7265
2019-04-19 17:43:45 +02:00
Benjamin Bouvier
b8e8bcf508 Bug 1546439: Bump Cranelift to 538a0662bf90a1daa9921c10f34827ace134abf1; r=lth
The one optimization introduced by this is the rearrangement of branches to
prefer fallthrough whenever possible, as well as folding branches when
comparing against 0. See also
https://github.com/CraneStation/cranelift/pull/629 for details.

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

--HG--
extra : rebase_source : f0d765a1cb1e2f7872037c18b9951077a08ae4b7
extra : histedit_source : 1a1dd95618e166705f7165c045f3b5af12f96d5b
2019-04-23 17:37:34 +02:00
Julian Seward
39144cc201 Bug 1546407 - Wasm baseline compiler: fix inconsistent indexing in MachineStackTracker::{set,is}GCPointer. r=lhansen.
MachineStackTracker::setGCPointer claims in a comment that its argument
`offsetFromSP` is an index up from the lowest address denoted by the stack
map. It implements that consistently with the comment.

MachineStackTracker::isGCPointer makes the same claim in a comment, but
actually implements the indexing in the opposite direction.

This patch:

* inverts the indexing direction of ::isGCPointer, making it consistent with
  the comments and with ::setGCPointer

* changes the one-and-only use point of ::isGCPointer, in createStackMap(),
  accordingly.  Rather than change the argument to ::isGCPointer, the
  iteration direction of the containing loop is inverted, since that fits
  better with the surrounding code.

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

--HG--
extra : rebase_source : 43d146d097fc44cda2e06e5ed30b6babe5d419eb
2019-04-24 06:59:50 +02:00
Lars T Hansen
32887cb3c2 Bug 1546293 - Improve Wasm gating for Ion. r=jseward
Gating that explicitly lists the architectures that are supported
is more resilient than one that lists architectures that are not.

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

--HG--
extra : rebase_source : f80372c2c5ef1b6b31b69a493f3ea8e1426327ab
extra : amend_source : 5ff1ff04b0ad9bbfd175655c4bf007a34d0a755e
2019-04-23 10:02:53 +02:00
Chris Martin
73fef3e094 Bug 1052579 - Change all found JSString allocation sites to new arena r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D25710

--HG--
extra : moz-landing-system : lando
2019-04-24 13:57:07 +00:00
Jan de Mooij
b949ce10fd Bug 1541404 part 14 - BaselineCompiler changes for JSOP_RESUME. r=djvj
When the Baseline Interpreter is enabled unconditionally we will be able to
simplify this a bit more, but for now we support both cases.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 13:32:40 +00:00
Nathan Froyd
49c1be9b8f Bug 1545502 - move fuzzing options to toolchain.configure; r=firefox-build-system-reviewers,chmanchester
We moved fuzzing options out of `toolkit/moz.configure` into `js`'s
configure a while back, but we seem to have snuck some fuzzing-related
options into `toolchain.configure` in the interim.  But we can't make
the `toolchain.configure` bits depend on the `js` bits; let's just put
everything in `toolchain.configure`.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:15:17 +00:00
Cosmin Sabou
1ed971fccf Backed out changeset a4847e3f634e (bug 1545751) for bustages on BinASTTokenReaderBase. CLOSED TREE 2019-04-24 12:57:19 +03:00
Noemi Erli
4457d4f754 Backed out 2 changesets (bug 1546439) for build bustages CLOSED TREE
Backed out changeset 8c14162a3f8e (bug 1546439)
Backed out changeset 5acf68edbf59 (bug 1546439)
2019-04-24 12:40:01 +03:00
David Teller
658901f044 Bug 1545751 - In BinAST, pass Context while parsing;r=arai
The Context 0.1 format specifies that the (de)compression of nodes is determined by:
- its node type;
- its parent type;
- the index in the parent node;
- whether the node is an element of an array.

This patch modifies the parser generator to pass the information during parsing.

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

--HG--
extra : moz-landing-system : lando
2019-04-24 09:27:00 +00:00
Benjamin Bouvier
0febbd598b Bug 1546439: Allow showing the optimized IR of a Cranelift-compiled function; r=lth
Differential Revision: https://phabricator.services.mozilla.com/D28513

--HG--
extra : moz-landing-system : lando
2019-04-23 17:14:19 +00:00
Ciure Andrei
1e7be41ddd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-24 01:22:25 +03:00
Ciure Andrei
167fe89533 Merge inbound to mozilla-central. a=merge 2019-04-24 01:15:47 +03:00
Andreea Pavel
4911c9e176 Backed out changeset fd2bf318a8b2 (bug 1492995) for SM bustages and other failures on a CLOSED TREE 2019-04-24 00:46:58 +03:00
Adam Holm
6ef12c56b1 Bug 1492995 - Adding CacheIR support for String + Boolean. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D27376

--HG--
extra : moz-landing-system : lando
2019-04-23 20:46:14 +00:00
Julian Seward
ffb20e4da9 Bug 1541357 - Change the argument order of table.grow to be spec-compliant. r=lth
We implemented table.grow with an initializer argument before there was a spec
for it, and the draft spec now takes the arguments in the opposite order of
what we have, to follow table.fill and memory.fill: we should pop the delta
first, then the init value, ie in the high-level notation, the init value is
the first argument and the delta the second. This corresponds to the last two
arguments of the fill instructions, which are initializer value and length.

This commit fixes both the implementation and test cases: it swaps the order
of the 'initial value' and 'delta' arguments.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 08:51:04 +00:00
Sylvestre Ledru
a1dce6440a Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-22 16:35:03 +00:00
Robin Templeton
4527d24375 Bug 1531647 - Refactor atomic operation type dispatch for BigInt integration r=lth,wingo
Differential Revision: https://phabricator.services.mozilla.com/D21785

--HG--
extra : moz-landing-system : lando
2019-04-22 13:06:46 +00:00
Kristen Wright
e663ae74b9 Bug 1532803 - Common interface for JSThreadPool tasks r=jonco
Added 'RunnableTask' struct to Utility.h to unify HelperThread task types in a way that can be exposed to XPCOM thread pools. Re-implemented tasks within native HelperThreads using their runnableTask method.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 16:43:43 +00:00
Jon Coppeard
4a5820783c Bug 1545369 - Check for OOM in shell ReportUnhandledRejections function r=pbone
Add an error check in ReportUnhandledRejections function.

Differential Revision: https://phabricator.services.mozilla.com/D28471
2019-04-23 13:24:32 +01:00
Jon Coppeard
e240b9f36f Bug 1544003 - Remove unnecessary #includes from JSObject-inl r=allstars.chh
Differential Revision: https://phabricator.services.mozilla.com/D27330
2019-04-12 16:51:17 +01:00
Ciure Andrei
d753cf6b80 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-24 07:30:32 +03:00
Ryan Hunt
d6509bb237 Bug 1534395 - Rename TabChild to BrowserChild. r=nika
This commit renames TabChild to BrowserChild.

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

--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Ciure Andrei
77a04f415d Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2019-04-24 01:23:49 +03:00
Kris Maglione
c9ee4462eb Bug 1546500: Avoid dispatching synchronous thread shutdown runnables. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D28555

--HG--
extra : rebase_source : 49c83199d51c208922bf55277a7d6052a36c199a
extra : amend_source : 6d2d246159d23723d24c0327e6adbf975545d7bd
2019-04-23 13:16:15 -07:00
Kris Maglione
0b36dbf3ec Bug 1526086: Fix possible shutdown deadlock when writing preloader cache. r=erahm
There are currently some odd circumstances where we deadlock waiting for the
background save thread to finish while it is blocked on sync dispatch to the
main thread during shutdown.

There were existing workarounds to prevent this, which tried to synchronously
complete the main thread work required by the background thread at the start
of shutdown, and some fallback anti-deadlock assertions to catch any remaining
corner cases, but apparently Fennec has corner cases of its own that we didn't
anticipate.

This patch takes the more straightforward route of using an async shutdown
blocker, which allows the async shutdown service to safely spin the event loop
until the save completes, rather than an independent monitor loop, which does
not.

It also fixes a potential data race where the save thread could clear its
mSaveThread member before NS_NewNamedThread returned, running afoul of
nsCOMPtr sanity checks.

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

--HG--
extra : rebase_source : 4aed24f4a255063d87dff2609e9913418d5c16fa
2019-04-18 13:11:22 -07:00
Benjamin Bouvier
e6b10a7881 Bug 1545086: Merge wasm exported function info to not overwrite the explicit bit; r=luke
Differential Revision: https://phabricator.services.mozilla.com/D28068

--HG--
extra : rebase_source : 1974157bae9a8da8ec9d68948a963b8dfd43899b
extra : amend_source : 9ef2cf0eae089258687e8cd8c4841fc07cea8911
2019-04-19 11:51:14 +02:00
Ted Campbell
eb360ed94b Bug 1545798 - Remove comments still referring to UnboxedObject. r=mgaudet
Depends on D28209

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

--HG--
extra : moz-landing-system : lando
2019-04-19 20:35:16 +00:00