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

706006 Коммитов

Автор SHA1 Сообщение Дата
Yura Zenevich 698b98c243 Bug 1635645 - check the action type before logging simulation related action errors. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D73991
2020-05-06 17:52:12 +00:00
Ted Campbell 8dbb0d9be2 Bug 1635635 - Use ScriptThingsVector for FunctionCreationData. r=mgaudet
Use ScriptThingVariant to represent closed-over-bindings and inner-functions
for lazy functions. Inline the body of BaseScript::CreateLazy as well so we
can use EmitScriptThingsVector to init the gcthings. We take care to keep
setting the enclosingScript link.

Differential Revision: https://phabricator.services.mozilla.com/D74036
2020-05-06 17:54:54 +00:00
Ted Campbell ebaeec7f90 Bug 1635635 - Move definition of FunctionCreationData. r=mgaudet
This patch is just code motion for the next one.

Depends on D73883

Differential Revision: https://phabricator.services.mozilla.com/D74035
2020-05-06 16:07:09 +00:00
Ted Campbell 067091a79a Bug 1635432 - Create FunctionBox without a FunctionCreationData. r=mgaudet
Initialize the FunctionBox fields from parameters instead of a
FunctionCreationData instance, and allow creating the JSFunction directly
from the FunctionBox. This allows us to remove most fields from the
FunctionCreationData type.

Note that we still use a default instance of FunctionCreationData to
correctly fill in CompilationInfo::funcData list. Future work will address
that when we unify with ScriptStencil.

Differential Revision: https://phabricator.services.mozilla.com/D73883
2020-05-06 16:11:28 +00:00
Chris Martin 06d9dd2b05 Bug 1400317 - Use gfxVars to mirror DWM status to content processes r=jrmuizel
The only caveat here is that gfxVars are not atomic, but multiple threads can
query DWM status. To solve this, changes to the var are mirrored into an atomic
and that is read instead.

DWM status changes are indicated by Windows via a window message. We use that
window message to cause the update to propagate

Differential Revision: https://phabricator.services.mozilla.com/D73743
2020-05-06 14:16:21 +00:00
Chris Martin 1093edd76c Bug 1400317 - Create single source of truth for DWM status r=jrmuizel
Currently, There are multiple places that call the Win32 APIs for DWM status.

Once Win32k lockdown is enabled, this API will be unavailable and will need
to be remoted. This new function will be made to work in both parent and
content processes, and therefore all DWM queries must be directed to it.

Also, some minor cleanup because... Why not?

Differential Revision: https://phabricator.services.mozilla.com/D73742
2020-05-06 14:15:58 +00:00
Jon Coppeard ca55853f66 Bug 1635692 - Invert JSString::NON_ATOM_BIT so it's now ATOM_BIT r=jandem
We shouldn't need to store this inverted any more.

Differential Revision: https://phabricator.services.mozilla.com/D74024
2020-05-06 17:33:12 +00:00
Jon Coppeard bfd0032546 Bug 1635692 - Move JSString::NON_ATOM_BIT so that it doesn't use one of the bits reserved for the GC r=jandem
It looks like we can use bit 3 for this instead.

Differential Revision: https://phabricator.services.mozilla.com/D74023
2020-05-06 17:33:12 +00:00
Jon Coppeard 6ce49edef8 Bug 1635692 - Store trace kind in nursery cell header and remove nursery cell kind flags r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D74022
2020-05-06 17:33:12 +00:00
Botond Ballo 40bce5ba7c Bug 1635822 - Early-exit in GetVisualToLayoutTransform() if the content element has no frame. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D74071
2020-05-06 17:20:59 +00:00
Benjamin Beurdouche 55a58de0c2 Bug 1635047 - Fix classification of Curve25519 KEA in telemetry. r=kjacobs,jcj
Differential Revision: https://phabricator.services.mozilla.com/D73606
2020-05-06 16:36:05 +00:00
Jeff Muizelaar 57daed43ca Bug 1635807 - Rollout WebRender to Intel apollolake and geminilake. r=aosmond
The screen resolutions are relatively low on these devices
and the GPUs have a reasonable amount of power.

Differential Revision: https://phabricator.services.mozilla.com/D74060
2020-05-06 15:38:54 +00:00
Kirk Steuber a525597853 Bug 1619145 - Add locale to app.update.url.manual and app.update.url.details in firefox-branding.js r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D74074
2020-05-06 16:30:15 +00:00
Kagami Sascha Rosylight 3507cfe914 Bug 1630704 - Merge overridding nsFrame methods to nsIFrame r=emilio
This follows D73070. Remainings are Init(), DestroyFrom(), and several functions that are not used by nsIFrame methods, which will be also merged in separate patch(s).

Differential Revision: https://phabricator.services.mozilla.com/D74041
2020-05-06 15:52:35 +00:00
AaryanDewan e74128e730 Bug 1621551 - Remove objectBox-string selector that was responsible for white-space: nowrap. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D74027
2020-05-06 16:48:39 +00:00
Tim Nguyen 55dda5f1b8 Bug 1635818 - Fix some conic gradient WPT accidentally passing when conic gradients are unsupported. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D74070
2020-05-06 16:15:12 +00:00
Andi-Bogdan Postelnicu 94b15f6444 Bug 1635795 - Activate virtualenv for `mach static-analysis`. r=rstewart,marco
Differential Revision: https://phabricator.services.mozilla.com/D74058
2020-05-06 16:47:15 +00:00
Yura Zenevich 62bc61fe41 Bug 1551574 - remove beta label for the accessibility checks toolbar. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D36441
2020-05-06 15:55:16 +00:00
Yura Zenevich d308a85705 Bug 1602075 - display enabled Inspect Accessibility Properties menu item in inspector if devtools.accessibility.auto-init.enabled pref is set to true. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D71587
2020-05-06 15:55:06 +00:00
Yura Zenevich 5b6b095fcf Bug 1602075 - display Inspect Accessibility Properties menu item if devtools.accessibility.auto-init.enabled pref is set to true. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71586
2020-05-06 15:54:58 +00:00
Yura Zenevich 72742f0760 Bug 1602075 - only highlight the accessibility tab when the auto init feature is not enabled. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71585
2020-05-06 15:54:51 +00:00
Dale Harvey ee1b1349f7 Bug 1627538 - Extract getRegion into its own jsm r=mikedeboer,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D71165
2020-05-06 12:07:53 +00:00
Tom Schuster 1e130db4ef Bug 1635589 - Warp: Transpile TruncateDoubleToUInt32. r=jandem
Enables is to compile bitwise arithmetic with double operands.

Depends on D73976

Differential Revision: https://phabricator.services.mozilla.com/D73977
2020-05-06 12:21:35 +00:00
Tom Schuster f78d6f3ca8 Bug 1635589 - Warp: Transpile GuardType. r=jandem
Unbox here seems a bit wrong, because usually the value isn't used afterwards.
(Interestingly enough we actually do use the value with TruncateDoubleToUInt32)
I doubt this will ever be a performance problem however.

GuardType doesn't just unlock bitwise arithmetic but also other stubs.

Depends on D73975

Differential Revision: https://phabricator.services.mozilla.com/D73976
2020-05-06 12:28:22 +00:00
Tom Schuster 846615ac3a Bug 1635589 - Warp: Transpile double arithmetic. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D73975
2020-05-06 06:56:42 +00:00
Steve Fink 3b17c8c75a Bug 1633176 - re-land incremental weakmap marking
Differential Revision: https://phabricator.services.mozilla.com/D74079
2020-05-06 16:38:33 +00:00
Narcis Beleuzu d6e59a92f6 Backed out 9 changesets (bug 1634135) for assertion failure on nsContentUtils.cpp . CLOSED TREE
Backed out changeset 392feb3c6f73 (bug 1634135)
Backed out changeset 88cf3b3be886 (bug 1634135)
Backed out changeset 080d06573454 (bug 1634135)
Backed out changeset f849ce4fe7de (bug 1634135)
Backed out changeset 4560a77cbe7b (bug 1634135)
Backed out changeset c2183a88c085 (bug 1634135)
Backed out changeset 18b93628199b (bug 1634135)
Backed out changeset 6aaf6e87a5d1 (bug 1634135)
Backed out changeset 35f6669e31a9 (bug 1634135)
2020-05-06 19:17:36 +03:00
Byron Campen [:bwc] 7ade57a2ca Bug 1628730: Update the ini file to point at the next bug that needs fixing. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D74045
2020-05-06 15:06:10 +00:00
Martin Stransky a9b7b022bf Bug 1635757 [Wayland] Provide more logging to nsDragService, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74038
2020-05-06 15:02:25 +00:00
André Bargull 2aec868777 Bug 1536699 - Part 6: Add test case. r=jandem
Depends on D72643

Differential Revision: https://phabricator.services.mozilla.com/D74019
2020-05-06 15:13:20 +00:00
André Bargull 0173cf0310 Bug 1536699 - Part 5: Remove unnecessary safepoint for LLoadTypedArrayElementHole. r=jandem
`LLoadTypedArrayElementHole` used to need to a safepoint for a vm-call (bug 737783),
but this vm-call was later removed in bug 829896.

Differential Revision: https://phabricator.services.mozilla.com/D72643
2020-05-06 11:05:45 +00:00
André Bargull 20e0645e82 Bug 1536699 - Part 4: Support BigInts in MStoreUnboxedScalar and MStoreTypedArrayElementHole. r=jandem
Also adds `Register64::scratchReg()` to make sure we don't run out of registers on x86.

Differential Revision: https://phabricator.services.mozilla.com/D72642
2020-05-06 12:31:59 +00:00
André Bargull a926295890 Bug 1536699 - Part 3: Add MToBigInt and ToBigIntPolicy. r=jandem
The next part needs `ToBigIntPolicy` when storing BigInts into a typed array.

`MToBigInt` is currently only used as part of `ToBigIntPolicy`, therefore we
have to bailout for effectful operations, like `ToBigInt(object)`. Only strings
and booleans can be handled without a bailout.

Differential Revision: https://phabricator.services.mozilla.com/D72641
2020-05-06 11:05:07 +00:00
André Bargull 2c4fba5ce7 Bug 1536699 - Part 2: Support BigInts in MLoadUnboxedScalar and MLoadTypedArrayElementHole. r=jandem
There are too few registers available on x86, therefore `LLoadTypedArrayElementHoleBigInt`
is reusing the ValueOperand's type register, similar to `CacheIRCompiler::emitLoadTypedElementResult`.

`LLoadUnboxedBigInt` and `LLoadTypedArrayElementHoleBigInt` are both using an OOL vm-call
if the result BigInt can't be allocated inline, similar to `CodeGenerator::visitInt64ToBigInt`.

Differential Revision: https://phabricator.services.mozilla.com/D72640
2020-05-06 11:03:30 +00:00
André Bargull a38ee50677 Bug 1536699 - Part 1: Add missing helpers for Register64. r=jandem
These functions are needed for the next parts.

Differential Revision: https://phabricator.services.mozilla.com/D72639
2020-05-06 10:57:31 +00:00
John Lin b873d056bc Bug 1634170 - clear crypto info before reusing recycled sample. r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D73989
2020-05-06 12:00:22 +00:00
Kartikaya Gupta b498c75baa Bug 1627010 - Disallow user from zooming out past initial zoom on desktop. r=botond
THis should continue allowing users to zoom out in RDM mode, or any time that
we are respecting the meta-viewport tag. It's only when we don't respect the
meta-viewport tag that we disable zooming out past initial zoom.

Differential Revision: https://phabricator.services.mozilla.com/D73461
2020-05-06 14:40:23 +00:00
Iain Ireland a027d50452 Bug 1634135: Turn new regexp engine on by default in Nightly r=mgaudet
Pull the lever!

(After responsibly waiting for 78 to open.)

Differential Revision: https://phabricator.services.mozilla.com/D73120
2020-05-05 16:50:07 +00:00
Iain Ireland 24949e3502 Bug 1634135: Update tests to expect RegExp.prototype.dotAll r=mgaudet
These two tests need to be updated to be aware of the new dotAll flag.

If we ever have to turn off the new engine, this patch should also be temporarily reverted.

Depends on D73118

Differential Revision: https://phabricator.services.mozilla.com/D73119
2020-05-06 14:55:27 +00:00
Iain Ireland e41d82d09e Bug 1634135: Throw 'regexp too big' errors properly r=mgaudet
If a regular expression is too big, the assembler may fail with RegExpError::kTooLarge. When it does so, we want to throw an error: "regexp too big".

Until the most recent reimport of irregexp, we were actually reporting an OOM in these cases, because `CompilationResult::code` was default-constructed as an UndefinedValue and we took the "OOM in GetCode" path. Now `CompilationResult::code` is a Handle, so we crash if we try to access the value.

Making the situation slightly more complicated is the fact that we still have a macroassembler live, which means that we can't GC, which means that we can't report an error. The old code used an AutoSuppressGC for this (https://searchfox.org/mozilla-central/source/js/src/irregexp/RegExpEngine.cpp#1703), but that seems like an extremely blunt instrument.

Instead, I've refactored `CompilePattern` to call a separate `Assemble` function. This means that we clean up the macroassembler before we call `JS_ReportErrorASCII`. The new function is a straight copy-paste of the old code, except for error handling and `.` to `->` conversions for the values being passed by reference. Note that the order of checks has changed after calling `compiler->Assemble(...)`: now we check `result.Succeeded()` before examining `result.code`.

We also change the shared labels in SMRegExpMacroAssembler to be NonAssertingLabels. This suppresses assertions in the Label destructor that they are not used without being bound. The assertion is already suppressed for OOM (https://searchfox.org/mozilla-central/source/js/src/jit/Label.h#82-86), which is why we did not trigger it previously.

Differential Revision: https://phabricator.services.mozilla.com/D73758
2020-05-05 23:23:35 +00:00
Iain Ireland 4c2823c938 Bug 1634135: Update shim code r=mgaudet
There are a few changes here:

1. The code that used to be in wrapBody was moved to RegExpCompiler::PreprocessRegExp.

2. The `code` field in RegExpCompileData used to be a bare Object, and is now a Handle<Object>. (This makes named captures way easier to implement, because it lets us to allocate GC things while parsing a regexp without angering the hazard analysis.) I also took this opportunity to remove some dead code in the shim implementation of Handle.

3. Upstream V8 made a change to simplify the interface with the interpreter. Previously, the caller of IrregexpInterpreter::MatchForCallFromRuntime was responsible for allocating enough memory to hold both the capture results and the scratch registers. Now, the interpreter has the same interface as the compiler: the caller passes in a buffer large enough to hold the capture results, and the memory for the scratch registers is allocated internally. This requires a few small additions to the shim (IsInRange plus new methods on JSRegExp and SmallVector).

Depends on D73117

Differential Revision: https://phabricator.services.mozilla.com/D73118
2020-05-05 12:49:54 +00:00
Iain Ireland 302292d4f6 Bug 1634135: Fresh import of irregexp r=mgaudet
This is as good a time as any to pull in some recent upstream changes (many of which I wrote). This patch was auto-generated using import-irregexp.py. The necessary changes to the shim code are in the next patch.

Depends on D73116

Differential Revision: https://phabricator.services.mozilla.com/D73117
2020-05-05 12:49:54 +00:00
Iain Ireland d352ca357a Bug 1634135: Eagerly tier up for long regexp inputs r=mgaudet
Interpreted bytecode is ~3-5 times slower than compiled code, but ~5-10 times smaller. In general it seems like this is a good trade-off for the first few iterations, but for particularly long input strings this can cause a significant slowdown before we tier up. V8 eagerly tiers up to compiled code when the input string is 1000+ characters long. Following their lead on this fixes a significant regression in sunspider-regexp-dna.

Differential Revision: https://phabricator.services.mozilla.com/D73116
2020-05-05 12:49:54 +00:00
Iain Ireland 55ed4ba1b1 Bug 1634135: Disable named capture parsing until fully supported r=mgaudet
The engine supports parsing named captures, but we don't have the code in place to expose the captured groups. Until we do, this code will make sure that we get a syntax error when parsing them.

Differential Revision: https://phabricator.services.mozilla.com/D73115
2020-05-05 12:49:54 +00:00
Iain Ireland e409020587 Bug 1634135: Fix look-behind back-references r=jandem
If a look-behind back-reference succeeds, we have to subtract the length of the capture from the current position (so that the current position points to the beginning of the capture). We don't have the length in a register, so we have to read it from the capture registers, which are stored on the stack. However, we pushed the initial value of the current position, so the stack pointer is offset by one word from where we expect.

The fix is to pop the saved value *before* subtracting the length.

With this fix, we pass all the test262 tests for look-behind assertions, dotAll, and unicode property escapes. (I will turn them on in a separate bug.)

Depends on D73112

Differential Revision: https://phabricator.services.mozilla.com/D73113
2020-05-05 12:49:53 +00:00
Iain Ireland 7d6e295765 Bug 1634135: Fix dummy TokenStream r=djvj
This was broken by changes to token streams in bug 1592105.

Differential Revision: https://phabricator.services.mozilla.com/D73112
2020-05-05 12:49:53 +00:00
Emilio Cobos Álvarez ab9d506242 Bug 1635733 - Fuzz two tests that after bug 1311444 have fuzzy outlines on Windows.
Differential Revision: https://phabricator.services.mozilla.com/D74048
2020-05-06 14:45:01 +00:00
Sebastian Hengst 9c0ffff641 Bug 1624868 - Disable browser/base/content/test/performance/io/ on Linux ccov for almost failing permanently. r=florian DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D74039
2020-05-06 14:40:03 +00:00
Geoff Brown 02269c9305 Bug 1624649: Move android-em to pull emulator from toolchain instead of tooltool; r=wcosta,kats
This is very similar to wcosta's earlier patch, with a few adjustments to overcome
special cases:
 - remove the wrench override of adb path; handle in config instead
 - fix taskcluster config syntax in a couple of places
 - add android-sdk-linux fetch for test-verify

Differential Revision: https://phabricator.services.mozilla.com/D73157
2020-05-06 14:28:37 +00:00
James Graham 88cdbbdcc1 Bug 1631819 - Allow disabling lsan entirely for directories, r=mccr8,maja_zf
This adds a new property lsan-disabled to wpt metadata files, which takes
a boolean to determine if lsan should be entirely disabled for that directory.

Differential Revision: https://phabricator.services.mozilla.com/D73918
2020-05-06 14:04:34 +00:00