Граф коммитов

695656 Коммитов

Автор SHA1 Сообщение Дата
Lars T Hansen 23854fd5a5 Bug 1566427 - Improved compiler availability computation. r=bbouvier
This patch cleans up wasm compiler selection and a few related things
with as few semantic changes as possible.  The intent is to centralize
compiler availability computation so that all parts of the system stay
in sync and it is easy to change compiler selection policy.

First, we introduce new predicates <Compiler>Available(cx) to test for
the actual availability of a compiler.  These predicates take into
account whether a compiler is compiled into the executable, whether it
supports the hardware, whether it is (currently) selected by
options/switches, and whether it can be used as a result of the
runtime environment (for example, Ion and Cranelift are not available
if the debugger is observing the page or if the GC feature is enabled;
Cranelift is not available if shared memory and atomics are enabled).
We switch to using these predicates almost everywhere that used
<Compiler>CanCompile() or cx->options().wasm<Compiler>(), since those
don't tell the full story.

Second, we implement a priority order of the optimizing compilers and
make it easy to change this order (see comments in code).  At the
moment, Cranelift is prioritized over Ion since Ion is enabled by
default and Cranelift is not; thus the desire of somebody flipping the
pref for Cranelift is to deselect Ion.  The priority order may change
in the future or may become platform-dependent.  The default compiler
selection in both browser and shell remains Baseline+Ion.

Third, we rename HasCompilerSupport() as HasPlatformSupport(), since
the predicate does not test whether compilers are available, only
whether they are present in the executable and support the hardware.
And to make that more sensible, <Compiler>CanCompile() is renamed
as <Compiler>PlatformSupport().

Fourth, we remove some redundant testing predicates (we don't need
both wasmDebugSupport and wasmDebuggingIsSupported, nor do we need
wasmUsesCranelift because wasmCompileMode is more reliable).

Fifth, we introduce a few new test cases that try to ensure that
compiler selection works as it should.  These are white-box and may
need to change if the compiler priority order changes.

Sixth, we rename the internal wasm::Has<Feature>Support() predicates
as wasm::<Feature>Available(), since they all actually test for
compiler availability.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 07:53:03 +00:00
Lars T Hansen bc5a3e6d09 Bug 1621208 - Do not assume shared memory is enabled. r=rhunt
Update some of the bulk memory test cases so that they do not run
tests on shared memory if shared memory is disabled in the engine.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 07:50:31 +00:00
shindli 6e08a7d30a Backed out changeset 66950fa024e1 (bug 1618867) for causing build bustages in /builds/worker/checkouts/gecko/browser/components/urlbar/tests/browser/tips/browser.ini CLOSED TREE 2020-03-11 14:47:18 +02:00
Harry Twyford 86ea042457 Bug 1618867 - Standardize /urlbar/tests names. r=adw! CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D65808

--HG--
extra : amend_source : a66ef80ca9d4bf31bc345ab54ba21a1d313ed9b9
2020-03-09 17:30:01 +00:00
shindli b02b3a6e1a Backed out changeset a08637fb30c8 (bug 1143478) for causing bustages in /builds/worker/checkouts/gecko/ipc/mscom/Registration.cpp CLOSED TREE
--HG--
rename : mfbt/CompactPair.h => mfbt/Pair.h
2020-03-11 14:30:54 +02:00
shindli 8a8793039d Backed out 12 changesets (bug 1612941) for webrender linting bustage CLOSED TREE
Backed out changeset bbb8ec38f354 (bug 1612941)
Backed out changeset cd798d2a0433 (bug 1612941)
Backed out changeset c02c4c5bf7f7 (bug 1612941)
Backed out changeset 2e0c9b9bd507 (bug 1612941)
Backed out changeset ec0fffd12dec (bug 1612941)
Backed out changeset 2d6f65fe6ec0 (bug 1612941)
Backed out changeset dd1a92041bb4 (bug 1612941)
Backed out changeset 3cae17a5ec80 (bug 1612941)
Backed out changeset edfca5676513 (bug 1612941)
Backed out changeset f94d5c7cee41 (bug 1612941)
Backed out changeset 67bba000daba (bug 1612941)
Backed out changeset 60151122db4d (bug 1612941)
2020-03-11 14:28:55 +02:00
Tom Schuster 00218dcac0 Bug 1275508 - Remove JavaScript werror from browser. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D66255

--HG--
extra : moz-landing-system : lando
2020-03-11 12:20:21 +00:00
Tom Schuster 82fbd1a7b3 Bug 1275508 - Remove werror. r=jandem
This passes jit-test and jstest locally. I still see some references
in jsapi-tests/binast, but I haven't looked into running those yet.

The asm.js warning stuff is a bit confusing. It seems like there are multiple mistakes?

asmLink claims that it should issue a warning. But it sets "werror", so this would always
throw an exception if linking actually threw an exception.

Some tests using assertAsmDirectiveFail aren't even valid JS programs ..

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

--HG--
extra : moz-landing-system : lando
2020-03-11 12:20:21 +00:00
Chris Fronk a27e438c2d Bug 1143478 - Rename mozilla::Pair to CompactPair. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64511

--HG--
rename : mfbt/Pair.h => mfbt/CompactPair.h
extra : moz-landing-system : lando
2020-03-11 12:18:13 +00:00
Lee Salzman d2ae8dbd06 Bug 1612941 - vendor SWGL's rust dependencies. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D65617

--HG--
extra : moz-landing-system : lando
2020-03-11 12:16:26 +00:00
Lee Salzman 002a8a6315 Bug 1612941 - import glsl-to-cxx and swgl into Gecko tree. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65616

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:11 +00:00
Lee Salzman 874d7bc3e6 Bug 1612941 - update gleam version to allow implementation of Gl trait. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65615

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:13 +00:00
Lee Salzman ac1f8c5496 Bug 1612941 - WR shader changes to support SWGL instance attribs. r=jrmuizel,gw
Add annotations to vertex shaders so that SWGL can detect when a vertex attribute
is generated by per-instance data rather than per-vertex data.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:16 +00:00
Lee Salzman 1d46e2d87f Bug 1612941 - force immediate upload method for SWGL since PBOs are slower there. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65613

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:18 +00:00
Lee Salzman dbeeeea309 Bug 1612941 - support variable depth buffer size in WR. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65602

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:21 +00:00
Lee Salzman dc05f2690c Bug 1612941 - only upload partial GPU cache rows in WR when possible to minimize memory churn. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65598

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:23 +00:00
Lee Salzman 306289e41f Bug 1612941 - properly detect GL_ARB_texture_swizzle extension in WR. r=gw,kvark
Differential Revision: https://phabricator.services.mozilla.com/D65596

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:28 +00:00
Lee Salzman d407780622 Bug 1612941 - make WR report shader name and features in output for interop with SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65595

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:25 +00:00
Lee Salzman 7b092892fc Bug 1612941 - add SWGL glue to wrench. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65593

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:30 +00:00
Lee Salzman 0b6ec64adc Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:07 +00:00
Lee Salzman 41602b16e1 Bug 1612941 - add deinit hook to WR Compositor trait. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65591

--HG--
extra : moz-landing-system : lando
2020-03-11 12:05:09 +00:00
shindli 0830b5e7f8 Backed out 12 changesets (bug 1612941) for causing bustages CLOSED TREE
Backed out changeset 29f9f745ff65 (bug 1612941)
Backed out changeset d92e03315f8d (bug 1612941)
Backed out changeset 9b1360daa75a (bug 1612941)
Backed out changeset ad7f43d72b08 (bug 1612941)
Backed out changeset 30b28118362a (bug 1612941)
Backed out changeset 76f80dce8875 (bug 1612941)
Backed out changeset 375896f494ae (bug 1612941)
Backed out changeset bd8ba66dc2ac (bug 1612941)
Backed out changeset 54ec5a6e8e45 (bug 1612941)
Backed out changeset 419105739e53 (bug 1612941)
Backed out changeset c198dedeaa1b (bug 1612941)
Backed out changeset 87ddcdfc5fcf (bug 1612941)
2020-03-11 14:01:26 +02:00
Lee Salzman 9bf1ae5b21 Bug 1612941 - vendor SWGL's rust dependencies. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D65617

--HG--
extra : moz-landing-system : lando
2020-03-11 11:13:40 +00:00
Lee Salzman 2b34a82b49 Bug 1612941 - import glsl-to-cxx and swgl into Gecko tree. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65616

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:32 +00:00
Lee Salzman a7cc74fee1 Bug 1612941 - update gleam version to allow implementation of Gl trait. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65615

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:40 +00:00
Lee Salzman 7805919fc5 Bug 1612941 - WR shader changes to support SWGL instance attribs. r=jrmuizel,gw
Add annotations to vertex shaders so that SWGL can detect when a vertex attribute
is generated by per-instance data rather than per-vertex data.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:22 +00:00
Lee Salzman 4f9e9c3750 Bug 1612941 - force immediate upload method for SWGL since PBOs are slower there. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65613

--HG--
extra : moz-landing-system : lando
2020-03-11 11:32:30 +00:00
Lee Salzman dae44fbfc2 Bug 1612941 - support variable depth buffer size in WR. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65602

--HG--
extra : moz-landing-system : lando
2020-03-11 11:34:35 +00:00
Lee Salzman 02f870d8a8 Bug 1612941 - only upload partial GPU cache rows in WR when possible to minimize memory churn. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65598

--HG--
extra : moz-landing-system : lando
2020-03-11 11:28:38 +00:00
Lee Salzman cb4d56df80 Bug 1612941 - properly detect GL_ARB_texture_swizzle extension in WR. r=gw,kvark
Differential Revision: https://phabricator.services.mozilla.com/D65596

--HG--
extra : moz-landing-system : lando
2020-03-11 11:29:24 +00:00
Lee Salzman 9b5568ef68 Bug 1612941 - make WR report shader name and features in output for interop with SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65595

--HG--
extra : moz-landing-system : lando
2020-03-11 11:24:53 +00:00
Lee Salzman 40944f2575 Bug 1612941 - add SWGL glue to wrench. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65593

--HG--
extra : moz-landing-system : lando
2020-03-11 11:25:16 +00:00
Lee Salzman f1882a34ed Bug 1612941 - add SWGL glue to webrender_bindings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D65592

--HG--
extra : moz-landing-system : lando
2020-03-11 11:47:16 +00:00
Lee Salzman 463470c4be Bug 1612941 - add deinit hook to WR Compositor trait. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D65591

--HG--
extra : moz-landing-system : lando
2020-03-11 11:46:32 +00:00
Micah Tigley aa2e990453 Bug 1621306 - Enable the devtools.responsive.browserUI.enabled pref in Nightly only r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D66246

--HG--
extra : moz-landing-system : lando
2020-03-11 11:41:48 +00:00
shindli 839d8e0131 Backed out changeset 2097f0a5abbb (bug 1621256) for spidermonkey bustages CLOSED TREE 2020-03-11 13:25:15 +02:00
André Bargull 91fe3dd817 Bug 1621256: Update GCCellPtr gdb pretty printer and add support for out-of-line types. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D66216

--HG--
extra : moz-landing-system : lando
2020-03-11 09:55:02 +00:00
Paul Adenot dc3afac772 Bug 1621596 - Adjust one patch from bug 1598114 to land what was meant to be landing
Differential Revision: https://phabricator.services.mozilla.com/D66382

--HG--
extra : moz-landing-system : lando
2020-03-11 10:56:00 +00:00
Masayuki Nakano 5343ffcff8 Bug 1620504 - part 16: Clean up warnings in JoinNodeTransaction r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D66178

--HG--
extra : moz-landing-system : lando
2020-03-10 14:20:22 +00:00
Jan de Mooij 32d4290527 Bug 1620960 part 5 - Replace IonBuilder::processIterators with MPhi::markIteratorPhis. r=tcampbell
This lets us reuse the same code for WarpBuilder.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 08:23:47 +00:00
Jan de Mooij 6d09bd9108 Bug 1620960 part 4 - Unify some of the iterator code in IonBuilder. r=tcampbell
Use the same mechanism for for-in and destructuring loops. Add loop phis to
the iterators_ Vector and at the end of IonBuilder mark these phis and phis
depending on them as having implicit uses.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 08:16:04 +00:00
Jan de Mooij d79753eb96 Bug 1620960 part 3 - Only add phis to the worklist in IonBuilder::processIterators. r=tcampbell
This function is only interested in the (network of) phis that use iterators
and we can ignore other uses.

Depends on D66003

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

--HG--
extra : moz-landing-system : lando
2020-03-11 05:02:54 +00:00
Jan de Mooij 13b3a14e95 Bug 1620960 part 2 - Make TryNoteIterAll a no-GC iterator. r=tcampbell
Rename to TryNoteIterAllNoGC and refactor things a bit so that we don't need
a JSContext* and RootedScript. WarpBuilder will likely want to use this iterator
off-thread.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 05:02:54 +00:00
Jan de Mooij 4903f49cdc Bug 1620960 part 1 - Add JSTryNote::isLoop. r=tcampbell
Later patches will use this.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 05:02:54 +00:00
Jan de Mooij 22fc0b5d6e Bug 1621295 - Run SM(arm) build on autoland. r=sfink,bc
This was disabled in bug 1599197 but this build is not really like the other
Linux32 builds: it runs ARM32 JIT code in SpiderMonkey's ARM32 simulator.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 08:33:35 +00:00
shindli 19953cff21 Backed out changeset 399201119339 (bug 1621416) for gecko decision task bustage CLOSED TREE DONTBUILD 2020-03-11 12:22:30 +02:00
Sebastian Hengst ae46fc56b2 Bug 1621416 - run Linux tsan mochitests with t-linux-xlarge to prevent retries and out-of-memory crashes. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D66299

--HG--
extra : moz-landing-system : lando
2020-03-10 20:33:26 +00:00
Emilio Cobos Álvarez 34551b142c Bug 1621511 - Try to make img-aspect-ratio-lazy less flaky on android. r=hiro
This is a tentative fix, but I think android viewport shenanigans are the only
reason this could be flaky only on Android.

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

--HG--
extra : moz-landing-system : lando
2020-03-11 09:53:43 +00:00
Alexandre Poirot 0f4a46b235 Bug 1620257 - Print the actorID when we receive a error in protocol.js Fronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D65525

--HG--
extra : moz-landing-system : lando
2020-03-10 22:29:04 +00:00
Sylvestre Ledru a3d37d446e Bug 1563915 - rustmft: Move from a include list to a skip list r=ahal
Depends on D65903

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

--HG--
extra : moz-landing-system : lando
2020-03-10 09:29:25 +00:00