Commit Graph

72767 Commits

Author SHA1 Message Date
Paul Bone
fbb5c0dc8c Bug 1573266 - Improve the NewContext OOM test r=jonco
We should end the test once the OOM simulation has found the last allocation
it can instrument, not when the context is created. This exercises 3 extra
allocations (they may be in the DestroyContext).

Also:
 * Print a + or a . to standard output to show if a context was
   successfully created or not for each iteration.

 * Rename this so all the OOM tests have OOM in their name.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 02:05:25 +00:00
Paul Bone
dadbb4ed50 Bug 1573266 - Make some corrections in js/src/jsapi-tests/README r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D46560

--HG--
extra : moz-landing-system : lando
2019-09-23 02:05:11 +00:00
Jan de Mooij
980c58176d Bug 1582772 - Use branchSub32 to micro-optimize some loops in generated code. r=iain
This is a bit more efficient. Bug 1582772 comment 0 has more data.

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

--HG--
extra : moz-landing-system : lando
2019-09-21 05:34:32 +00:00
shindli
921b45df78 Merge autoland to mozilla-central. a=merge 2019-09-22 00:46:56 +03:00
Brindusan Cristian
125c934a04 Backed out 8 changesets (bug 1542830) for causing Nightly bustages. a=backout
Backed out changeset 6fcb417f7ff4 (bug 1542830)
Backed out changeset 1aa253e6604a (bug 1542830)
Backed out changeset 73ec288886cd (bug 1542830)
Backed out changeset 84b903e60dc9 (bug 1542830)
Backed out changeset 8e2da9ff5f5a (bug 1542830)
Backed out changeset c4e547a6a039 (bug 1542830)
Backed out changeset 919f1af7c135 (bug 1542830)
Backed out changeset da7e775c4051 (bug 1542830)

--HG--
rename : browser/app/winlauncher/freestanding/DllBlocklist.cpp => browser/app/winlauncher/DllBlocklistWin.cpp
rename : browser/app/winlauncher/freestanding/DllBlocklist.h => browser/app/winlauncher/DllBlocklistWin.h
rename : mozglue/dllservices/Authenticode.cpp => mozglue/build/Authenticode.cpp
rename : mozglue/dllservices/Authenticode.h => mozglue/build/Authenticode.h
rename : mozglue/misc/WinUtils.h => mozglue/build/MozglueUtils.h
rename : mozglue/dllservices/WindowsDllBlocklist.cpp => mozglue/build/WindowsDllBlocklist.cpp
rename : mozglue/dllservices/WindowsDllBlocklist.h => mozglue/build/WindowsDllBlocklist.h
rename : mozglue/dllservices/WindowsDllBlocklistCommon.h => mozglue/build/WindowsDllBlocklistCommon.h
rename : mozglue/dllservices/WindowsDllBlocklistDefs.in => mozglue/build/WindowsDllBlocklistDefs.in
rename : mozglue/dllservices/WindowsDllServices.h => mozglue/build/WindowsDllServices.h
rename : mozglue/dllservices/gen_dll_blocklist_defs.py => mozglue/build/gen_dll_blocklist_defs.py
rename : toolkit/components/telemetry/docs/data/third-party-modules-ping.rst => toolkit/components/telemetry/docs/data/untrusted-modules-ping.rst
rename : toolkit/components/telemetry/tests/unit/test_ThirdPartyModulesPing.js => toolkit/components/telemetry/tests/unit/test_UntrustedModulesPing.js
rename : toolkit/xre/UntrustedModulesProcessor.cpp => toolkit/xre/ModuleEvaluator_windows.cpp
rename : toolkit/xre/UntrustedModulesProcessor.h => toolkit/xre/ModuleEvaluator_windows.h
rename : toolkit/xre/ModuleVersionInfo.cpp => toolkit/xre/ModuleVersionInfo_windows.cpp
rename : toolkit/xre/ModuleVersionInfo.h => toolkit/xre/ModuleVersionInfo_windows.h
2019-09-22 00:01:01 +03:00
arthur.iakab
b6a627c094 Merge inbound to mozilla-central. a=merge
--HG--
extra : amend_source : 39c72a7f01f9afa5abf7587d732d1e63969cc9da
2019-09-21 13:00:40 +03:00
Dorel Luca
f5e74811ca Merge mozilla-central to mozilla-inbound 2019-09-21 00:58:45 +03:00
Kris Maglione
685d91c901 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : 86b3d469b4ff9f22e5757f83450b956a4c769785
extra : histedit_source : 2bf945343632b15eb79cf6b2ddd3ce097ddf70de%2Caec93d9f11bc1c802b63793cd5818530b64e9b4b
2019-09-20 10:18:15 -07:00
Ted Campbell
6b7940ef0f Bug 1578730 - Use vector of pointers for LCovRealm::sources. r=nbp
Now that LCovRealm is allocated on demand, use a Vector directly instead
of allocating that vector on demand. To ensure pointer stability of
LCovSources, allocated them in the LifoAlloc and only store pointers in
the sources vector. They are still fully owned by the LCovRealm.

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

--HG--
extra : moz-landing-system : lando
2019-09-21 14:11:09 +00:00
Ted Campbell
0d24285212 Bug 1578730 - Allocate LCovRealm on first use. r=nbp
Save a little bit of memory when code coverage is not in use. Add a
collectCodeCoverage method to the realm so it can allocate LCovRealm on
demand. Also compute the realm name string from the constructor instead
of in the lookup code (this still happens at same time).

Depends on D46168

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

--HG--
extra : moz-landing-system : lando
2019-09-21 13:36:58 +00:00
Ted Campbell
4b246234bf Bug 1578730 - Run JSScript::initScriptName on main-thread only. r=nbp
Avoid creating the ScriptNameMap in the off-thread parse zone. Instead
perform JSScript::initScriptName when merging the parse result to main
thread. This will avoid the need to migrate coverage initialization data
between Realms.

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

--HG--
extra : moz-landing-system : lando
2019-09-21 13:04:41 +00:00
Andreea Pavel
31d9596a28 Backed out 8 changesets (bug 1542830) for gecko decision failure on a CLOSED TREE
DONTBUILD

Backed out changeset 4f72161be496 (bug 1542830)
Backed out changeset 7ee12138946d (bug 1542830)
Backed out changeset 9e90ee4981c6 (bug 1542830)
Backed out changeset 363039c98534 (bug 1542830)
Backed out changeset 70ffff30551a (bug 1542830)
Backed out changeset c25b7bf354d9 (bug 1542830)
Backed out changeset d156dc595b69 (bug 1542830)
Backed out changeset 9f5dbd1b2959 (bug 1542830)

--HG--
rename : browser/app/winlauncher/freestanding/DllBlocklist.cpp => browser/app/winlauncher/DllBlocklistWin.cpp
rename : browser/app/winlauncher/freestanding/DllBlocklist.h => browser/app/winlauncher/DllBlocklistWin.h
rename : mozglue/dllservices/Authenticode.cpp => mozglue/build/Authenticode.cpp
rename : mozglue/dllservices/Authenticode.h => mozglue/build/Authenticode.h
rename : mozglue/misc/WinUtils.h => mozglue/build/MozglueUtils.h
rename : mozglue/dllservices/WindowsDllBlocklist.cpp => mozglue/build/WindowsDllBlocklist.cpp
rename : mozglue/dllservices/WindowsDllBlocklist.h => mozglue/build/WindowsDllBlocklist.h
rename : mozglue/dllservices/WindowsDllBlocklistCommon.h => mozglue/build/WindowsDllBlocklistCommon.h
rename : mozglue/dllservices/WindowsDllBlocklistDefs.in => mozglue/build/WindowsDllBlocklistDefs.in
rename : mozglue/dllservices/WindowsDllServices.h => mozglue/build/WindowsDllServices.h
rename : mozglue/dllservices/gen_dll_blocklist_defs.py => mozglue/build/gen_dll_blocklist_defs.py
rename : toolkit/components/telemetry/docs/data/third-party-modules-ping.rst => toolkit/components/telemetry/docs/data/untrusted-modules-ping.rst
rename : toolkit/components/telemetry/tests/unit/test_ThirdPartyModulesPing.js => toolkit/components/telemetry/tests/unit/test_UntrustedModulesPing.js
rename : toolkit/xre/UntrustedModulesProcessor.cpp => toolkit/xre/ModuleEvaluator_windows.cpp
rename : toolkit/xre/UntrustedModulesProcessor.h => toolkit/xre/ModuleEvaluator_windows.h
rename : toolkit/xre/ModuleVersionInfo.cpp => toolkit/xre/ModuleVersionInfo_windows.cpp
rename : toolkit/xre/ModuleVersionInfo.h => toolkit/xre/ModuleVersionInfo_windows.h
2019-09-20 19:49:27 +03:00
Daniel Varga
f0411a344a Backed out 6 changesets (bug 1553804) for browser-chrome failure at browser/base/content/test/general/browser_fullscreen-window-open.js. On a CLOSED TREE
Backed out changeset 86b3d469b4ff (bug 1553804)
Backed out changeset 301e0d883a5f (bug 1553804)
Backed out changeset acff4a663671 (bug 1553804)
Backed out changeset 1574aecf3177 (bug 1553804)
Backed out changeset 3acf056e792e (bug 1553804)
Backed out changeset 1ed250faeb2e (bug 1553804)
2019-09-20 10:09:54 +03:00
Aaron Klotz
6c7b43b9c8 Bug 1542830: Part 4 - Modify mozglue to use new untrusted modules interfaces; r=mhowell
* At this point our DLL blocking infra is complicated enough that I decided to
  bite the bullet and move all of this code out of `mozglue/build` and into its
  own subdirectory, `mozglue/dllservices`.
* We delete the original `UntrustedDllsHandler` code which is now obsolete.
* We implement mozglue's `LoaderObserver`:
** When this observer registers itself with the launcher process API, it
   receives a vector containing all saved records of loaded DLLs that happened
   until that moment.
** This code handles profiler labels and stackwalking suppression.
** Once a load has completed, we either pass the load on to XUL for further
   processing, or save it for later if XUL is not initialized yet.
* mozglue has its own `ModuleLoadFrame` implementation for the legacy blocklist.
* `DllServicesBase` is updated to support the new interfaces.
* We implement `FallbackLoaderAPI` for `plugin-container`, `xpcshell`, and
  any other non-`firefox` processes that do not have a launcher process
  providing a loader API.
* We add some wide to UTF8 conversion functions.

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

--HG--
rename : mozglue/build/Authenticode.cpp => mozglue/dllservices/Authenticode.cpp
rename : mozglue/build/Authenticode.h => mozglue/dllservices/Authenticode.h
rename : mozglue/build/WindowsDllBlocklist.cpp => mozglue/dllservices/WindowsDllBlocklist.cpp
rename : mozglue/build/WindowsDllBlocklist.h => mozglue/dllservices/WindowsDllBlocklist.h
rename : mozglue/build/WindowsDllBlocklistCommon.h => mozglue/dllservices/WindowsDllBlocklistCommon.h
rename : mozglue/build/WindowsDllBlocklistDefs.in => mozglue/dllservices/WindowsDllBlocklistDefs.in
rename : mozglue/build/WindowsDllServices.h => mozglue/dllservices/WindowsDllServices.h
rename : mozglue/build/gen_dll_blocklist_defs.py => mozglue/dllservices/gen_dll_blocklist_defs.py
rename : mozglue/build/moz.build => mozglue/dllservices/moz.build
rename : mozglue/build/MozglueUtils.h => mozglue/misc/WinUtils.h
extra : moz-landing-system : lando
2019-09-20 00:09:41 +00:00
Kris Maglione
cd6abb804a Bug 1579222: Don't discard scripts before they've been encoded for the cache write. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D46216

--HG--
extra : moz-landing-system : lando
2019-09-19 20:44:22 +00:00
Henri Sivonen
4866595f52 Bug 1582050 - Test bug 1561567 JS_EncodeStringToUTF8BufferPartial without DOM code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D46131

--HG--
extra : moz-landing-system : lando
2019-09-19 14:42:36 +00:00
Kris Maglione
136131d397 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

--HG--
extra : moz-landing-system : lando
2019-09-20 04:44:02 +00:00
Aaron Klotz
8d1be668f6 Bug 1542830: Part 4 - Modify mozglue to use new untrusted modules interfaces; r=mhowell
* At this point our DLL blocking infra is complicated enough that I decided to
  bite the bullet and move all of this code out of `mozglue/build` and into its
  own subdirectory, `mozglue/dllservices`.
* We delete the original `UntrustedDllsHandler` code which is now obsolete.
* We implement mozglue's `LoaderObserver`:
** When this observer registers itself with the launcher process API, it
   receives a vector containing all saved records of loaded DLLs that happened
   until that moment.
** This code handles profiler labels and stackwalking suppression.
** Once a load has completed, we either pass the load on to XUL for further
   processing, or save it for later if XUL is not initialized yet.
* mozglue has its own `ModuleLoadFrame` implementation for the legacy blocklist.
* `DllServicesBase` is updated to support the new interfaces.
* We implement `FallbackLoaderAPI` for `plugin-container`, `xpcshell`, and
  any other non-`firefox` processes that do not have a launcher process
  providing a loader API.
* We add some wide to UTF8 conversion functions.

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

--HG--
rename : mozglue/build/Authenticode.cpp => mozglue/dllservices/Authenticode.cpp
rename : mozglue/build/Authenticode.h => mozglue/dllservices/Authenticode.h
rename : mozglue/build/WindowsDllBlocklist.cpp => mozglue/dllservices/WindowsDllBlocklist.cpp
rename : mozglue/build/WindowsDllBlocklist.h => mozglue/dllservices/WindowsDllBlocklist.h
rename : mozglue/build/WindowsDllBlocklistCommon.h => mozglue/dllservices/WindowsDllBlocklistCommon.h
rename : mozglue/build/WindowsDllBlocklistDefs.in => mozglue/dllservices/WindowsDllBlocklistDefs.in
rename : mozglue/build/WindowsDllServices.h => mozglue/dllservices/WindowsDllServices.h
rename : mozglue/build/gen_dll_blocklist_defs.py => mozglue/dllservices/gen_dll_blocklist_defs.py
rename : mozglue/build/moz.build => mozglue/dllservices/moz.build
rename : mozglue/build/MozglueUtils.h => mozglue/misc/WinUtils.h
extra : moz-landing-system : lando
2019-09-20 19:43:33 +00:00
Ciure Andrei
7db4ad5d80 Backed out 8 changesets (bug 1542830) for causing spidermonkey bustages CLOSED TREE
Backed out changeset b9f7fc8d0172 (bug 1542830)
Backed out changeset b85f58fd5bbd (bug 1542830)
Backed out changeset 0a9169ab2623 (bug 1542830)
Backed out changeset 39a7c05d54ef (bug 1542830)
Backed out changeset 7a3cbd2f59f0 (bug 1542830)
Backed out changeset 268530552281 (bug 1542830)
Backed out changeset df658ffb8599 (bug 1542830)
Backed out changeset e7bef6486a38 (bug 1542830)

--HG--
rename : browser/app/winlauncher/freestanding/DllBlocklist.cpp => browser/app/winlauncher/DllBlocklistWin.cpp
rename : browser/app/winlauncher/freestanding/DllBlocklist.h => browser/app/winlauncher/DllBlocklistWin.h
rename : mozglue/dllservices/Authenticode.cpp => mozglue/build/Authenticode.cpp
rename : mozglue/dllservices/Authenticode.h => mozglue/build/Authenticode.h
rename : mozglue/misc/WinUtils.h => mozglue/build/MozglueUtils.h
rename : mozglue/dllservices/WindowsDllBlocklist.cpp => mozglue/build/WindowsDllBlocklist.cpp
rename : mozglue/dllservices/WindowsDllBlocklist.h => mozglue/build/WindowsDllBlocklist.h
rename : mozglue/dllservices/WindowsDllBlocklistCommon.h => mozglue/build/WindowsDllBlocklistCommon.h
rename : mozglue/dllservices/WindowsDllBlocklistDefs.in => mozglue/build/WindowsDllBlocklistDefs.in
rename : mozglue/dllservices/WindowsDllServices.h => mozglue/build/WindowsDllServices.h
rename : mozglue/dllservices/gen_dll_blocklist_defs.py => mozglue/build/gen_dll_blocklist_defs.py
rename : toolkit/components/telemetry/docs/data/third-party-modules-ping.rst => toolkit/components/telemetry/docs/data/untrusted-modules-ping.rst
rename : toolkit/components/telemetry/tests/unit/test_ThirdPartyModulesPing.js => toolkit/components/telemetry/tests/unit/test_UntrustedModulesPing.js
rename : toolkit/xre/UntrustedModulesProcessor.cpp => toolkit/xre/ModuleEvaluator_windows.cpp
rename : toolkit/xre/UntrustedModulesProcessor.h => toolkit/xre/ModuleEvaluator_windows.h
rename : toolkit/xre/ModuleVersionInfo.cpp => toolkit/xre/ModuleVersionInfo_windows.cpp
rename : toolkit/xre/ModuleVersionInfo.h => toolkit/xre/ModuleVersionInfo_windows.h
2019-09-20 21:21:39 +03:00
Cameron Kaiser
b98e4c628b Bug 1576303 part 2 - remove now unnecessary workarounds for ppc64le in js/src/gc and js/xpconnect/src. r=tcampbell
Depends on D46421

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

--HG--
extra : moz-landing-system : lando
2019-09-19 16:49:33 +00:00
Aaron Klotz
12843d81e9 Bug 1542830: Part 4 - Modify mozglue to use new untrusted modules interfaces; r=mhowell
* At this point our DLL blocking infra is complicated enough that I decided to
  bite the bullet and move all of this code out of `mozglue/build` and into its
  own subdirectory, `mozglue/dllservices`.
* We delete the original `UntrustedDllsHandler` code which is now obsolete.
* We implement mozglue's `LoaderObserver`:
** When this observer registers itself with the launcher process API, it
   receives a vector containing all saved records of loaded DLLs that happened
   until that moment.
** This code handles profiler labels and stackwalking suppression.
** Once a load has completed, we either pass the load on to XUL for further
   processing, or save it for later if XUL is not initialized yet.
* mozglue has its own `ModuleLoadFrame` implementation for the legacy blocklist.
* `DllServicesBase` is updated to support the new interfaces.
* We implement `FallbackLoaderAPI` for `plugin-container`, `xpcshell`, and
  any other non-`firefox` processes that do not have a launcher process
  providing a loader API.
* We add some wide to UTF8 conversion functions.

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

--HG--
rename : mozglue/build/Authenticode.cpp => mozglue/dllservices/Authenticode.cpp
rename : mozglue/build/Authenticode.h => mozglue/dllservices/Authenticode.h
rename : mozglue/build/WindowsDllBlocklist.cpp => mozglue/dllservices/WindowsDllBlocklist.cpp
rename : mozglue/build/WindowsDllBlocklist.h => mozglue/dllservices/WindowsDllBlocklist.h
rename : mozglue/build/WindowsDllBlocklistCommon.h => mozglue/dllservices/WindowsDllBlocklistCommon.h
rename : mozglue/build/WindowsDllBlocklistDefs.in => mozglue/dllservices/WindowsDllBlocklistDefs.in
rename : mozglue/build/WindowsDllServices.h => mozglue/dllservices/WindowsDllServices.h
rename : mozglue/build/gen_dll_blocklist_defs.py => mozglue/dllservices/gen_dll_blocklist_defs.py
rename : mozglue/build/moz.build => mozglue/dllservices/moz.build
rename : mozglue/build/MozglueUtils.h => mozglue/misc/WinUtils.h
extra : moz-landing-system : lando
2019-09-20 17:00:14 +00:00
Matthew Gaudet
d1a87d26e0 Bug 1580020 - Simplify AsmJS handling for deferred allocation r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D46348

--HG--
extra : moz-landing-system : lando
2019-09-20 16:27:01 +00:00
Matthew Gaudet
871a61461c Bug 1580020 - Switch ParseContext to consume a ParseInfo directly, rather than decomposing r=tcampbell
Also breaks UsedNameTracker into its own header

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

--HG--
extra : moz-landing-system : lando
2019-09-20 16:26:59 +00:00
Matthew Gaudet
9a19f5fa3d Bug 1580020 - Mark publishDeferredItems as MOZ_MUST_USE to prevent misuse r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D45557

--HG--
extra : moz-landing-system : lando
2019-09-20 16:26:55 +00:00
Matthew Gaudet
eae20d8f2c Bug 1580378 - Support enabling parser deferred allocation mode on shell command line r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D45556

--HG--
extra : moz-landing-system : lando
2019-09-20 16:26:52 +00:00
Ted Campbell
62565b25fc Bug 1578730 - Add js::GetCodeCovergeSummaryAll API. r=nbp,marco
Split the GetCodeCoverageSummary API into a variant for a specific realm
vs checking all realms. This restores the original behaviour of the
getLcovInfo testing function to only return info on current realm. This
makes testing OOM behaviour much more predictable.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:08:39 +00:00
Jan de Mooij
3fa0593143 Bug 1582039 - Make JSContext::runningWithTrustedPrincipals() return false if trustedPrincipals() is nullptr. r=luke
Differential Revision: https://phabricator.services.mozilla.com/D46258

--HG--
extra : moz-landing-system : lando
2019-09-20 13:02:53 +00:00
Andreea Pavel
4ceee566c7 Backed out 3 changesets (bug 1577757, bug 1577508, bug 1576900) for bustages at WasmOpIter.h on a CLOSED TREE
Backed out changeset 8a9ae25b1019 (bug 1577508)
Backed out changeset 948702f3a01f (bug 1576900)
Backed out changeset c3aaa0bee2b5 (bug 1577757)
2019-09-20 16:59:20 +03:00
Andy Wingo
482bca4462 Bug 1577508 - Allow WebAssembly blocks to return multiple values r=luke
Differential Revision: https://phabricator.services.mozilla.com/D43977

--HG--
extra : moz-landing-system : lando
2019-09-20 13:18:40 +00:00
Andy Wingo
3a4760420c Bug 1576900 - Wasm FuncType has a vector of return values r=luke
Differential Revision: https://phabricator.services.mozilla.com/D43604

--HG--
extra : moz-landing-system : lando
2019-09-20 13:14:58 +00:00
Andy Wingo
274fa1aba0 Bug 1577757 - Add a compile-time option for wasm multi-value r=luke
Differential Revision: https://phabricator.services.mozilla.com/D44142

--HG--
extra : moz-landing-system : lando
2019-09-20 13:07:21 +00:00
Daniel Varga
1be9031fc6 Backed out 2 changesets (bug 1577757, bug 1576900) for build bustage in build/src/js/src/wasm/WasmTypes. On a CLOSED TREE
Backed out changeset fe49a3616f91 (bug 1576900)
Backed out changeset 9a94f14b4192 (bug 1577757)
2019-09-20 13:37:51 +03:00
Jon Coppeard
ad4df9ae33 Bug 1581574 - Remove Heap<T> write barrier and rely on existing read barrier to make incremental marking work r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D46133

--HG--
extra : moz-landing-system : lando
2019-09-20 10:09:19 +00:00
Andy Wingo
bc1b3fab70 Bug 1576900 - Wasm FuncType has a vector of return values r=luke
Differential Revision: https://phabricator.services.mozilla.com/D43604

--HG--
extra : moz-landing-system : lando
2019-09-20 10:03:30 +00:00
Andy Wingo
5c5a091f6d Bug 1577757 - Add a compile-time option for wasm multi-value r=luke
Differential Revision: https://phabricator.services.mozilla.com/D44142

--HG--
extra : moz-landing-system : lando
2019-09-20 07:53:50 +00:00
Gary Kwong
d85a0b1f8f Bug 1581005 - Detect UBSan support via getBuildConfiguration in TestingFunctions.cpp, r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D45767

--HG--
extra : moz-landing-system : lando
2019-09-17 08:03:28 +00:00
Jan de Mooij
7081cf6275 Bug 1577280 - Add a script filename validation callback. r=tcampbell
This is a process-wide callback that can be used by embedders to block parsing
or decoding of scripts that are considered unsafe.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 07:41:30 +00:00
Mike Hommey
7a952b88db Bug 1579471 - Remove the in-tree .cargo/config. r=mshal
It was added in bug 1575760 and turns out to be causing a lot more
problems than anticipated.

However, the previous status quo is also not ideal, so we do
auto-generate .cargo/config.in instead, with a little trick that allows
to just copy it to .cargo/config instead of how individual scripts would
previously manually preprocess it.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 00:47:22 +00:00
Gurzau Raul
6bd9ca2b13 Backed out 4 changesets (bug 1547824) for build bustage at vm/Interpreter.h on a CLOSED TREE.
Backed out changeset f87ca6d25d62 (bug 1547824)
Backed out changeset 261a25ae16e2 (bug 1547824)
Backed out changeset d2df23e104f1 (bug 1547824)
Backed out changeset 0188973c2b10 (bug 1547824)
2019-09-20 02:52:10 +03:00
Jeff Walden
8542e72e2a Bug 1582345 - Add a RealmCreationOption to control whether readable-stream support for BYOB readers is enabled. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D46395

--HG--
extra : moz-landing-system : lando
2019-09-19 21:12:56 +00:00
Jeff Walden
7583592954 Bug 1582345 - Add a RealmCreationOption controlling whether support for ReadableStreams of type "bytes" is enabled. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D46394

--HG--
extra : moz-landing-system : lando
2019-09-19 21:23:39 +00:00
Jeff Walden
72f81fb21d Bug 1582345 - Move |ReadableStream::mode()| to ReadableStream.cpp. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D46392

--HG--
extra : moz-landing-system : lando
2019-09-19 21:22:32 +00:00
Ted Campbell
d62aa85533 Bug 1547824 - Add Value::unboxGCPointer helper for JS::Value. r=iain
Abstracts the pointer unboxing pattern for both NUNBOX32 and PUNBOX64
formats. This also encapsulates some of the spectre mitigations.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 21:12:06 +00:00
Ted Campbell
248faef2dc Bug 1547824 - Change JS::Value from union to class. r=jwalden
Now that all the bad type-punning is gone, JS::Value has a single
asBits_ field and we should use a class aggregate type instead.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 21:12:05 +00:00
Ted Campbell
80b4dc297a Bug 1547824 - Remove js::Value::payload union from 32-bit platforms. r=iain
Use well-defined conversions on the asBits_ instead. This removes union
arms entirely. They are slighly useful for debugging, but we don't have
that on our 64-bit platforms and the gdb helpers can already help us
out.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 21:12:05 +00:00
Ted Campbell
80c3890f81 Bug 1547824 - Remove js::Value::payload union from 64-bit platforms. r=iain
Use well-defined conversions on the asBits_ instead. The remaining union
arms were not even helpful for debuggers so we remove entirely.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 21:12:05 +00:00
Nicolas B. Pierron
58585aac29 Bug 1579876 - Add telemetry to estimate the benefit of a streaming parser for JS. data-review=mlopatka r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D45551

--HG--
extra : moz-landing-system : lando
2019-09-19 12:42:51 +00:00
Jeff Walden
ddc9712d7e Bug 1581651 - Make the shell's -f flag correspond to direct UTF-8 parsing (as used for all external scripts on the web), and make -u instead parse after inflating to UTF-16. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D46081

--HG--
extra : moz-landing-system : lando
2019-09-19 03:24:56 +00:00
wartmanm
882574ba29 Bug 1570881 - Update remaining BytecodeEmitter constructor to use FunctionBox line/column r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D43390

--HG--
extra : moz-landing-system : lando
2019-09-18 21:33:28 +00:00
Ted Campbell
a7526cb49d Bug 1575055 - Avoid duplicating CompileOptions constructor code. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D42562

--HG--
extra : moz-landing-system : lando
2019-09-18 15:05:53 +00:00