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

86502 Коммитов

Автор SHA1 Сообщение Дата
Yury Delendik 87d6b4efd9 Bug 1753923 - Remove run-time selection of wasm SIMD. r=rhunt
Removed:
* javascript.options.wasm_simd in about:config
* --no-wasm-simd at the shell

Differential Revision: https://phabricator.services.mozilla.com/D145812
2022-06-29 18:31:49 +00:00
Matthew Gaudet 580a35d01e Bug 1747059 - Gecko support for ShadowRealms r=peterv,smaug
This connects [Exposed=*] in WebIDL to ShadowRealms

Differential Revision: https://phabricator.services.mozilla.com/D146349
2022-06-28 22:04:18 +00:00
Matthew Gaudet d390a7f144 Bug 1747059 - Add GetRealmObjectPrototypeHandle r=jonco
This is required to interact with Gecko's ProtoHandleGetter type.

I wish it wasn't, but trying to fix the codegen to just root things properly
ate too much of my time.

Differential Revision: https://phabricator.services.mozilla.com/D146348
2022-06-28 22:04:18 +00:00
Matthew Gaudet a1e06076f6 Bug 1767525 - Enable ShadowRealms test262 tests under flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D146238
2022-06-28 22:04:17 +00:00
Matthew Gaudet a29bac4d1e Bug 1767525 - Implement ShadowRealm.prototype.importValue r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D146237
2022-06-28 22:04:17 +00:00
Matthew Gaudet 3c9ac3d334 Bug 1767525 - Implement (under a flag) ShadowRealm constructor and evaluate function. r=jandem
Shell only, without HostInitializeShadowRealm, nor importValue

Differential Revision: https://phabricator.services.mozilla.com/D146236
2022-06-28 22:04:16 +00:00
Jan de Mooij babf6c7e30 Bug 1776666 part 5 - Remove StubFrameSize. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D150375
2022-06-28 06:44:40 +00:00
Jan de Mooij 97288cf3e9 Bug 1776666 part 4 - Use frame pointer in loadStackObject. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D150374
2022-06-28 06:44:40 +00:00
Jan de Mooij 863a5e64a4 Bug 1776666 part 3 - Use frame pointer more in Baseline IC code. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D150373
2022-06-28 06:44:39 +00:00
Jan de Mooij abffe762c9 Bug 1776666 part 2 - Remove StubFrameSizeFromFP. r=iain
It's now equivalent to `BaselineStubFrameLayout::Size()`, which is more descriptive.

Differential Revision: https://phabricator.services.mozilla.com/D150372
2022-06-28 06:44:39 +00:00
Jan de Mooij 3132097598 Bug 1776666 part 1 - Remove BaselineStackReg alias. r=iain
`BaselineFrameReg` was removed a few weeks ago.

Differential Revision: https://phabricator.services.mozilla.com/D150371
2022-06-28 06:44:38 +00:00
Kris Maglione b8bfb24cd0 Bug 1776207: Part 3 - Remove generateNSGetFactory now that it isn't used anymore. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D150193
2022-06-27 22:36:12 +00:00
Csoregi Natalia a6c7516d80 Backed out 9 changesets (bug 1747059, bug 1767525)for causing hazard failures on ShadowRealmGlobalScope.cpp. CLOSED TREE
Backed out changeset ed7aad37f2cf (bug 1747059)
Backed out changeset 40a257fb4788 (bug 1747059)
Backed out changeset f7b049ef3b8c (bug 1747059)
Backed out changeset aad38abc7139 (bug 1747059)
Backed out changeset 8115813e77a5 (bug 1747059)
Backed out changeset e06192e664fd (bug 1747059)
Backed out changeset a198b0893220 (bug 1767525)
Backed out changeset c083f0824619 (bug 1767525)
Backed out changeset 9a3bf794ec6d (bug 1767525)
2022-06-28 02:39:08 +03:00
Matthew Gaudet f8b7719e44 Bug 1747059 - Gecko support for ShadowRealms r=peterv,smaug
This connects [Exposed=*] in WebIDL to ShadowRealms

Differential Revision: https://phabricator.services.mozilla.com/D146349
2022-06-27 21:17:36 +00:00
Matthew Gaudet 466d20a7b0 Bug 1747059 - Add GetRealmObjectPrototypeHandle r=jonco
This is required to interact with Gecko's ProtoHandleGetter type.

I wish it wasn't, but trying to fix the codegen to just root things properly
ate too much of my time.

Differential Revision: https://phabricator.services.mozilla.com/D146348
2022-06-27 21:17:36 +00:00
Matthew Gaudet 6722270b18 Bug 1767525 - Enable ShadowRealms test262 tests under flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D146238
2022-06-27 21:17:35 +00:00
Matthew Gaudet 8827b96fec Bug 1767525 - Implement ShadowRealm.prototype.importValue r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D146237
2022-06-27 21:17:34 +00:00
Matthew Gaudet 139929cd67 Bug 1767525 - Implement (under a flag) ShadowRealm constructor and evaluate function. r=jandem
Shell only, without HostInitializeShadowRealm, nor importValue

Differential Revision: https://phabricator.services.mozilla.com/D146236
2022-06-27 21:17:34 +00:00
Jan de Mooij 16a5c9c07a Bug 1285890 - Remove unnecessary AutoLockHelperThreadState in LinkIonScript. r=jonco
Both the lazy link list and the `pendingIonCompileTask` are only used on the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D150384
2022-06-27 14:07:28 +00:00
Ryan VanderMeulen b8e30b3751 Bug 1776281 - Update Zydis to version 3.2.1. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D150182
2022-06-27 13:05:18 +00:00
Jan de Mooij 666beebee5 Bug 1776367 part 2 - Add frame pointer to RegExp stubs. r=iain
This improves profiling with "perf" a bit because we now don't lose the Ion frame
anymore. It also lets us simplify the code because we can now use the frame pointer
instead of the stack pointer (less stable due to stack pushes).

Differential Revision: https://phabricator.services.mozilla.com/D150224
2022-06-27 12:10:55 +00:00
Jan de Mooij 17ff59652c Bug 1776367 part 1 - Annotate RegExp code for perf/VTune. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D150223
2022-06-27 12:10:55 +00:00
Cristian Tuns d55e818499 Backed out changeset 7e22fe4b498e (bug 1773471) for causing mochitest failures in test_xrayToJS.xhtml CLOSED TREE 2022-06-27 08:05:06 -04:00
Hemanth HM 0ce342241d Bug 1773471: Renaming to group and groupToMap r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D148672
2022-06-27 11:28:04 +00:00
Jan de Mooij 6828c4dbf4 Bug 1776358 - Only include wasmMaxStackArgBytes in Ion frame size if there are calls. r=rhunt
Because `wasmMaxStackArgBytes` is calculated early on, it was possible we later eliminated
all call instructions and `needsStaticStackAlignment` was false, but we still included
`wasmMaxStackArgBytes` in the frame size, breaking stack alignment invariants on ARM64.

The simplest fix is to not include `wasmMaxStackArgBytes` if we know there are no calls (left).

This fixes an old Ion ARM64 bug exposed by the assertion added in bug 1774449.

Differential Revision: https://phabricator.services.mozilla.com/D150244
2022-06-25 14:02:55 +00:00
Csoregi Natalia 6992154d1b Backed out changeset 004885c1597c (bug 1775150)for causing bustage on mozJSModuleLoader.h. CLOSED TREE 2022-06-25 16:59:21 +03:00
serge-sans-paille 97f856cfb5 Bug 1775150 - Cleanup js/xpconnect includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D149803
2022-06-25 13:45:03 +00:00
Noemi Erli ff26b8a5d0 Backed out 11 changesets (bug 1773770) because shouldn't have been landed during a soft freeze CLOSED TREE
Backed out changeset ede55d570d1e (bug 1773770)
Backed out changeset d5374ef362c2 (bug 1773770)
Backed out changeset 26e47956508b (bug 1773770)
Backed out changeset c78f0c4c8f3f (bug 1773770)
Backed out changeset 9089a97bcb26 (bug 1773770)
Backed out changeset 17894f5b3b41 (bug 1773770)
Backed out changeset 986a64a9e6b4 (bug 1773770)
Backed out changeset 7a63d8676bf0 (bug 1773770)
Backed out changeset 38e7b99ffbed (bug 1773770)
Backed out changeset e9ad07c96ab2 (bug 1773770)
Backed out changeset 2a8f65417b66 (bug 1773770)
2022-06-24 20:03:43 +03:00
Matthew Gaudet 76187bd0bf Bug 1776288 - Missing include in RecordType.cpp r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D150188
2022-06-24 16:15:40 +00:00
Jan de Mooij ba8e631b26 Bug 1772824 - Don't use the megamorphic cache for GetBoundName. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D150097
2022-06-24 10:54:30 +00:00
Kris Maglione b6d623aef3 Bug 1773770: Part 10 - Migrate xpcshell to register components without defining a module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149437
2022-06-24 07:10:18 +00:00
criss 6abc242b8d Backed out 11 changesets (bug 1773770) for causing mochitest failures on test_bug466599.xhtml. CLOSED TREE
Backed out changeset d35762c3242d (bug 1773770)
Backed out changeset 0501c85d3f58 (bug 1773770)
Backed out changeset cdd28e0e3434 (bug 1773770)
Backed out changeset a48829529dd0 (bug 1773770)
Backed out changeset c3fcdd7e88e5 (bug 1773770)
Backed out changeset 8f334c5dc0cd (bug 1773770)
Backed out changeset 337e76b67647 (bug 1773770)
Backed out changeset 71f539b482ba (bug 1773770)
Backed out changeset b996cbbbc2f5 (bug 1773770)
Backed out changeset a6ddc3cdc9ba (bug 1773770)
Backed out changeset c8d7da3cf2ac (bug 1773770)
2022-06-24 08:12:40 +03:00
Kris Maglione 96858519fa Bug 1773770: Part 10 - Migrate xpcshell to register components without defining a module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149437
2022-06-24 00:47:45 +00:00
Marian-Vasile Laza 7dd26a3f65 Backed out 11 changesets (bug 1773770) for causing bc failures on browser_xpcom_graph_wait.js. CLOSED TREE
Backed out changeset 72ace9ee39ae (bug 1773770)
Backed out changeset e8a3a040b4c4 (bug 1773770)
Backed out changeset 4ff5f4f0f5d1 (bug 1773770)
Backed out changeset f96e9664168d (bug 1773770)
Backed out changeset b6a696897ca8 (bug 1773770)
Backed out changeset 1b8ad6be2dce (bug 1773770)
Backed out changeset 7e3a1a32a88d (bug 1773770)
Backed out changeset 6dbe5fa1ad4f (bug 1773770)
Backed out changeset 86e09dcdadde (bug 1773770)
Backed out changeset 1ee8d852d9d5 (bug 1773770)
Backed out changeset c99e93023059 (bug 1773770)
2022-06-24 03:25:34 +03:00
Kris Maglione dbb7539139 Bug 1773770: Part 10 - Migrate xpcshell to register components without defining a module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149437
2022-06-23 23:05:37 +00:00
Denis Palmeiro 2e36f2bed1 Bug 1776267: Check PerfEnabled() instead of PerfFuncEnabled() for wasm code ranges r=iain
Differential Revision: https://phabricator.services.mozilla.com/D150166
2022-06-23 22:44:07 +00:00
Marian-Vasile Laza 969bcd8dfe Backed out 11 changesets (bug 1773770) for causing bustages on nsComponentManager.obj.
Backed out changeset 3538e99dd668 (bug 1773770)
Backed out changeset 0862b3275742 (bug 1773770)
Backed out changeset 45dbd95d94bb (bug 1773770)
Backed out changeset 1d079a6ae89c (bug 1773770)
Backed out changeset ac4c4a143ff7 (bug 1773770)
Backed out changeset 0e3233868101 (bug 1773770)
Backed out changeset ac727812fd06 (bug 1773770)
Backed out changeset fe46df06e31a (bug 1773770)
Backed out changeset 51b89b344d7f (bug 1773770)
Backed out changeset 62e49ca3f288 (bug 1773770)
Backed out changeset 6df39588ec9a (bug 1773770)
2022-06-24 01:16:58 +03:00
Kris Maglione 10ead9b275 Bug 1773770: Part 10 - Migrate xpcshell to register components without defining a module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D149437
2022-06-23 20:13:10 +00:00
Jan de Mooij 969ca65c66 Bug 1775422 part 4 - Use loadPtr/storePtr instead of load32/store32 in bailout code. r=iain
This shouldn't be perf-sensitive, but on 64-bit platforms it's more natural to copy
eight bytes at a time.

Depends on D149964

Differential Revision: https://phabricator.services.mozilla.com/D149965
2022-06-23 07:57:45 +00:00
Jan de Mooij 1b2fd9f817 Bug 1775422 part 3 - Set stack pointer in exception trampoline for exception bailouts. r=iain
The exception trampoline now uses a `Label` + `jump` to jump to the bailout tail
code, after setting the stack pointer to the `JitFrameLayout` of the bailing frame.

In the bailout tail code, we can now assert the stack pointer is what we expect
instead of clobbering it ourselves.

Depends on D149963

Differential Revision: https://phabricator.services.mozilla.com/D149964
2022-06-23 07:57:45 +00:00
Jan de Mooij ef28bcca07 Bug 1775422 part 2 - Split JitFrameLayout::argv in actualArgs and thisAndActualArgs. r=iain
The `argv` method on `BaselineFrame` does not include `this`, but the one on `JitFrameLayout` does.
We can be a bit more explicit about this.

Depends on D149962

Differential Revision: https://phabricator.services.mozilla.com/D149963
2022-06-23 07:57:45 +00:00
Jan de Mooij 4ba7510625 Bug 1775422 part 1 - Tidy up BaselineFrame methods. r=iain
* Some methods can forward to the implementation in `JitFrameLayout`.
* Replace `offsetOfFoo` methods with the ones from `JitFrameLayout` now that `FramePointerOffset` is gone.

The next patch will tidy up `JitFrameLayout::argv`.

Differential Revision: https://phabricator.services.mozilla.com/D149962
2022-06-23 07:57:44 +00:00
Jan de Mooij 58e0aed9a7 Bug 1773584 - Remove MemoryProtectionExceptionHandler and PageProtectingVector. r=nbp
`PageProtectingVector` has been unused since bug 1342023.

`MemoryProtectionExceptionHandler` was only used to annotate crashes affecting
`LifoAlloc` memory.

Differential Revision: https://phabricator.services.mozilla.com/D149993
2022-06-23 07:28:42 +00:00
Kris Maglione 27515a3d83 Bug 1770237: Part 17 - Rename mozJSComponentLoader to mozJSModuleLoader r=mccr8,decoder
Differential Revision: https://phabricator.services.mozilla.com/D148197
2022-06-22 20:31:37 +00:00
Kris Maglione 2b9e8682a2 Bug 1770237: Part 16 - Remove component loading logic from mozJSComponentLoader. r=mccr8,florian
Differential Revision: https://phabricator.services.mozilla.com/D148196
2022-06-22 20:31:37 +00:00
Kris Maglione 6758092966 Bug 1770237: Part 6 - Update XPConnect xpcshell tests to avoid unnecessary legacy component registration. r=mccr8
These tests just test XPConnect wrapping, and don't actually have anything to
do with component registration. There are simpler ways to get wrapping that
are just as effective.

Differential Revision: https://phabricator.services.mozilla.com/D148186
2022-06-22 20:31:33 +00:00
Kris Maglione de25cced8a Bug 1770237: Part 5 - Get rid of obsolete component test in test_import.js. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D148185
2022-06-22 20:31:33 +00:00
Kris Maglione d10586e741 Bug 1770237: Part 4 - Move system scope Blob/File tests from JS components to JSMs. r=mccr8
JS components are now always loaded from JSMs.

Differential Revision: https://phabricator.services.mozilla.com/D148184
2022-06-22 20:31:33 +00:00
Jan de Mooij 6a2f271bac Bug 1774848 part 3 - Push a profiler entry when resuming generators and async functions in the C++ interpreter. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D149864
2022-06-22 12:07:09 +00:00
Jan de Mooij 3878b76d96 Bug 1774848 part 2 - Add testing function and tests for reading the interpreter profiling stack. r=iain
`readGeckoProfilingStack` only reads the JIT frames. This adds a similar function
for C++ interpreter frames.

Differential Revision: https://phabricator.services.mozilla.com/D149863
2022-06-22 12:07:08 +00:00