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

744230 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer 71b1d5722d Bug 1688815: Update GetSiteOriginNoSuffix() to handle view-source correctly. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D102200
2021-02-09 18:54:28 +00:00
André Bargull 1b0e359028 Bug 1638295 - Part 11: Re-enable "forEffect" optimisation for Atomics fetch operations. r=jandem
Atomic fetch operations are effectful, which means they're attached to a resume
point. And because a resume point counts as a use, the "forEffect" optimisation
was never triggered. This is a regression from bug 1146364.

This optimisation is especially useful for atomic operations on BigInts, because
it allows us to omit the allocation of the result BigInt.

`WarpCacheIRTranspiler::emitAtomicsBinaryOp()` pushes `undefined` on the stack
when the "forEffect" optimisation is used, which should be okay because the
result is directly popped from the stack again.

ARM64:
Add the implementation for `LAtomicTypedArrayElementBinopForEffect` which is now
required to be present.

Depends on D104174

Differential Revision: https://phabricator.services.mozilla.com/D104175
2021-02-09 18:51:51 +00:00
André Bargull d0faa07cfc Bug 1638295 - Part 10: Remove TruncateToInt32Policy. r=jandem
The type policy is no longer used.

Depends on D104173

Differential Revision: https://phabricator.services.mozilla.com/D104174
2021-02-09 18:51:50 +00:00
André Bargull 8ac3f40e51 Bug 1638295 - Part 9: Inline Atomics.{add,and,or,sub,xor} with BigInt64 typed arrays. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D104173
2021-02-09 18:51:50 +00:00
André Bargull b0bb286a5a Bug 1638295 - Part 8: Inline Atomics.exchange with BigInt64 typed arrays. r=jandem
Depends on D104171

Differential Revision: https://phabricator.services.mozilla.com/D104172
2021-02-09 18:51:49 +00:00
André Bargull 082df128fd Bug 1638295 - Part 7: Prepare AtomicReadModifyWrite operations for BigInt support. r=jandem
Updates CacheIR for AtomicReadModifyWrite operations to support BigInt results.

Similar to part 3, add a temporary `supportBigInt` flag which will later be
removed again.

Depends on D104170

Differential Revision: https://phabricator.services.mozilla.com/D104171
2021-02-09 18:51:49 +00:00
André Bargull e847169526 Bug 1638295 - Part 6: Inline Atomics.compareExchange with BigInt64 typed arrays. r=jandem
Similar to the previous parts, CacheIR always calls into the VM and only Warp
performs the operation in inline assembly.

TypePolicy.cpp:
- Add `TruncateToInt32OrToBigIntPolicy` similar to the existing `TruncateToInt32Policy`.
- `TruncateToInt32Policy` will be removed at the end of this patch series.

CodeGenerator.cpp:
Add `createBigIntOutOfLine()` so we can call it from "CodeGenerator-x86.cpp".

x86:
The lack of free registers makes it necessary to use the stack more often to
temporarily save some registers.

Depends on D104167

Differential Revision: https://phabricator.services.mozilla.com/D104170
2021-02-09 18:51:48 +00:00
André Bargull 29f8066bf0 Bug 1638295 - Part 5: Inline Atomics.store with BigInt64 typed arrays. r=jandem
For CacheIR we're using an ABI call, because each platform has specific register
requirements we don't want to handle in CacheIR.

ARM32 and x86:
Reuse the existing WASM functions for `MacroAssembler::atomicStore64()`.

x86-only:
We're running out of registers, so we have to reuse `edx` as an additional temp
register.

ARM64 and x64:
Call `MacroAssembler::store64()` with an explicit memory barrier.

Differential Revision: https://phabricator.services.mozilla.com/D104167
2021-02-09 18:51:48 +00:00
André Bargull 5fde9f5ba5 Bug 1638295 - Part 4: Inline Atomics.load with BigInt64 typed arrays. r=jandem
For CacheIR we're using a VM call, because each platform has specific register
requirements we don't want to handle in CacheIR.

ARM32 and x86:
Reuse the existing WASM functions for `MacroAssembler::atomicLoad64()`.

ARM64 and x64:
Call `MacroAssembler::load64()` with an explicit memory barrier.

Depends on D104165

Differential Revision: https://phabricator.services.mozilla.com/D104166
2021-02-09 18:51:48 +00:00
André Bargull 702ec8ca96 Bug 1638295 - Part 3: Add a temporary flag to AtomicsMeetsPreconditions to enable BigInt for some operations. r=jandem
This flag will be removed again at the end of this patch series. The flag
makes it possible to perform piecewise updates to allow BigInt inputs without
breaking the not yet updated functions.

Depends on D104164

Differential Revision: https://phabricator.services.mozilla.com/D104165
2021-02-09 18:51:47 +00:00
André Bargull 0aa124bc0e Bug 1638295 - Part 2: Add ScaleFromScalarType to convert from Scalar::Type to Scale. r=jandem
Small helper to abbreviate `ScaleFromElemWidth(Scalar::byteSize(type))` to just
`ScaleFromScalarType(type)`. Later patches will also use this new function.

Differential Revision: https://phabricator.services.mozilla.com/D104164
2021-02-09 18:51:47 +00:00
André Bargull 54940b2ee7 Bug 1638295 - Part 1: Reduce code duplication when converting or unboxing operands in type policies. r=jandem
Move common code for converting operands into `ConvertOperand` and for unboxing
operands into `UnboxOperand`. Part 6 will also use `ConvertOperand`.

Differential Revision: https://phabricator.services.mozilla.com/D104162
2021-02-09 18:51:46 +00:00
Butkovits Atila 0305f603dc Bug 1677540 - disable test browser_async_remove_tab.js for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D104539
2021-02-09 18:47:29 +00:00
Christoph Kerschbaumer 2b003274b2 Bug 1687342: Blocked-URI in CSP reports should be URI before redirects with ref removed r=freddyb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D103450
2021-02-09 18:42:03 +00:00
Christoph Kerschbaumer d14708a4c5 Bug 1542194: Update blocked-uri in CSP reporting by treating frame naviations as redirects r=freddyb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D103697
2021-02-09 18:41:59 +00:00
Ted Campbell ddf3fdc90c Bug 1691570 - Replace ScriptSourceHolder with RefPtr<ScriptSource> r=jandem
Now that ScriptSource has no tracing requirements, we can replace the custom
wrapper time with a more gecko-friendly RefPtr.

Differential Revision: https://phabricator.services.mozilla.com/D104478
2021-02-09 18:33:31 +00:00
alwu 8efed25b78 Bug 1690416 - remove `HTMLMediaElement::ReportCanPlayTelemetry()`. r=bryce,Gijs,webidl,mccr8
The actual telemetry probes has been removed by this, so this function is no longer reporting any result and we can remove it.

[1] https://phabricator.services.mozilla.com/D37313

Differential Revision: https://phabricator.services.mozilla.com/D103846
2021-02-09 18:27:33 +00:00
Simon Giesecke fbfee61619 Bug 1688833 - Change remaining references to LookupForAdd to WithEntryHandle and remove LookupForAdd. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104400
2021-02-09 18:19:47 +00:00
Simon Giesecke 846d039c3c Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/payments. r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D104224
2021-02-09 18:19:47 +00:00
Simon Giesecke 815d5d72c3 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/serviceworkers. r=dom-worker-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D104192
2021-02-09 18:19:46 +00:00
Simon Giesecke 5a4b6bc937 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in modules/libpref. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D104196
2021-02-09 18:19:46 +00:00
Simon Giesecke 8528e2fa1d Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/commandhandler. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D104232
2021-02-09 18:19:45 +00:00
Simon Giesecke ba07b1d2f5 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/clients. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D104231
2021-02-09 18:19:45 +00:00
Simon Giesecke 2a318a3a15 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/broadcastchannel. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D104230
2021-02-09 18:19:45 +00:00
Simon Giesecke 8ae4e0da81 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/animation. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104229
2021-02-09 18:19:44 +00:00
Simon Giesecke ba3b6a2b06 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/console. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D104228
2021-02-09 18:19:44 +00:00
Simon Giesecke 8efcd9e1fd Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/events. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D104227
2021-02-09 18:19:44 +00:00
Simon Giesecke 91f2fa3021 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/html. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D104226
2021-02-09 18:19:43 +00:00
Simon Giesecke 08b7f7db76 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/media/ogg. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D104225
2021-02-09 18:19:43 +00:00
Simon Giesecke 0112be56fb Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in toolkit/components/antitracking. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D104223
2021-02-09 18:19:42 +00:00
Simon Giesecke 8efce92e07 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in toolkit/components/extensions. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D104222
2021-02-09 18:19:42 +00:00
Simon Giesecke f47f86c0e1 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in toolkit/components/places. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D104221
2021-02-09 18:19:42 +00:00
Simon Giesecke 284afe2be2 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in toolkit/components/telemetry. r=tkikuchi
Differential Revision: https://phabricator.services.mozilla.com/D104220
2021-02-09 18:19:41 +00:00
Simon Giesecke 72e9ced681 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in toolkit/xre. r=tkikuchi
Differential Revision: https://phabricator.services.mozilla.com/D104219
2021-02-09 18:19:41 +00:00
Simon Giesecke 12c0dee627 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in uriloader. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104218
2021-02-09 18:19:41 +00:00
Simon Giesecke 8444825010 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/storage. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D104217
2021-02-09 18:19:40 +00:00
Simon Giesecke 8df74b1582 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in gfx. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D104216
2021-02-09 18:19:40 +00:00
Simon Giesecke 010633d2d1 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in gfx/thebes. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D104215
2021-02-09 18:19:39 +00:00
Simon Giesecke d4f7649e81 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/base. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D104203
2021-02-09 18:19:39 +00:00
Simon Giesecke 40403773d0 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in layout. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104202
2021-02-09 18:19:39 +00:00
Simon Giesecke 4df825df71 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/ipc. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D104201
2021-02-09 18:19:38 +00:00
Simon Giesecke 183fad585f Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in docshell. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D104200
2021-02-09 18:19:38 +00:00
Simon Giesecke 5ab2e2fc52 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in netwerk. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D104197
2021-02-09 18:19:37 +00:00
Simon Giesecke 8730386ad9 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in xpcom. r=xpcom-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D104195
2021-02-09 18:19:37 +00:00
Simon Giesecke 4b754c2bfa Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/localstorage. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D104194
2021-02-09 18:19:37 +00:00
Simon Giesecke b2d872c3b8 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/quota. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D104193
2021-02-09 18:19:36 +00:00
Simon Giesecke 258f41c8e3 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in dom/workers. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D104191
2021-02-09 18:19:36 +00:00
Simon Giesecke b87d2b0662 Bug 1682536 - Use references/NotNull for QuotaObject. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D99780
2021-02-09 18:19:36 +00:00
Simon Giesecke 3012a7db34 Bug 1688833 - Make nsBaseHashtable::WithEntryHandle public and complete its design. r=xpcom-reviewers,nika
Implements the missing handle functions (OrInsertWith, OrUpdateWith), and harmonizes functions
to return a reference to the data.

Adds unit tests.

Differential Revision: https://phabricator.services.mozilla.com/D99764
2021-02-09 18:19:35 +00:00
Sebastian Hengst 7cea2bce58 Bug 1661187 - disable browser_resume_latest_paused_media.js on Linux x64 opt and debug. r=intermittent-reviewers,jmaher DONTBUILD
As recommended by Alastor in the bug.

See also bug 1683016 which disabled the test executed before.

Differential Revision: https://phabricator.services.mozilla.com/D104515
2021-02-09 18:18:55 +00:00