Commit Graph

72048 Commits

Author SHA1 Message Date
Ciure Andrei
adef2661b1 Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
Matthew Gaudet
b8f89aa588 Bug 1569315 - Unify flags access code in FunctionFlags r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D40510

--HG--
extra : moz-landing-system : lando
2019-08-06 21:03:18 +00:00
Matthew Gaudet
969004e3aa Bug 1569315 - Clarify GC status of FunctionCreationData r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D40507

--HG--
extra : moz-landing-system : lando
2019-08-06 21:02:35 +00:00
Matthew Gaudet
4925a59731 Bug 1569315 - Make FunctionTree processing either Eager or Deferred. r=tcampbell
This makes eager processing the default as well, which makes the code
effectively work how it does before the FunctionTree patches.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 21:01:42 +00:00
Matthew Gaudet
b1eb6c533c Bug 1569315 - Defer allocation of JSFunctions in the parser r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D39774

--HG--
extra : moz-landing-system : lando
2019-08-06 23:14:30 +00:00
Matthew Gaudet
0881977c36 Bug 1567579 - Defer allocation of LazyScript to after parsing r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D38699

--HG--
extra : moz-landing-system : lando
2019-08-06 20:52:26 +00:00
Razvan Maries
eedbf1137f Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
Ciure Andrei
4728534655 Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : 57383594f7dc0e3b1ef13562ed8b5d459165fda6
2019-08-07 00:47:50 +03:00
Tom Schuster
03c7998ef2 Bug 1558915 - Use infallible nsIURI::SchemeIs in various places r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40677

--HG--
extra : moz-landing-system : lando
2019-08-06 20:19:41 +00:00
Jon Coppeard
db61c45a71 Backed out changeset d681969e4480 too (bug 1568740), missed from previous commit 2019-08-06 11:40:13 +01:00
Jon Coppeard
b31e872e50 Backed out changesets 7ec72ad52389 to 251f98554914 (bug 1568740) for causing bug 1571439 2019-08-06 11:26:12 +01:00
Kris Maglione
c01ad83372 Bug 1571502: Don't leak TabGroups which have never had windows joined to them. r=nika
Currently, TabGroups know to break their reference cycles only when the last
window leaves them. For TabGroups which have never had a window join (which
happens under Fission), this means they also never see a window leave, and
therefore never break their reference cycles, and leak.

This patch adds a check to break reference cycles if no windows have joined by
the time a BrowserChild they belong to is destroyed.

MANUAL PUSH: Lando fails to rebase.

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

--HG--
extra : source : 03acb28ab60fb77fa06064385a62cc46cf4ad1bd
extra : amend_source : 0a71625d99951bebe45ee6f62570de491a714e97
2019-08-02 18:19:53 -07:00
Andrew McCreight
6633271226 Bug 1570484 - Nuke Xray waivers for remote outer window proxies. r=bzbarsky,tcampbell,jonco
Remote outer window proxies can't be the target of a CCW, because if
you attempt to wrap them we just create a new outer window proxy.
Therefore, they can't be the target of an Xray wrapper, so they can't
have Xray waivers that do anything useful. However, if we do a
navigation from a local iframe to a remote iframe, we'll transplant a
remote outer window proxy onto a local outer window proxy, which might
have an Xray. This can cause some issues, particularly if we later
navigate back to a different local window.

To work around this, this patch nukes Xray waivers on navigation to a
remote outer window proxy. This makes Xray waiver behavior
inconsistent with the non-Fission behavior, but it is safer to leave
the non-Fission behavior alone for now, for fear of breaking addons.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 16:32:31 +00:00
Brindusan Cristian
2d3a2752f0 Backed out changeset 344a525cddbc (bug 1570484) for spidermonkey bustage at BaseProxyHandler.cpp:389:25. CLOSED TREE 2019-08-05 18:25:24 +03:00
Andrew McCreight
9dc3bbe1f0 Bug 1570484 - Nuke Xray waivers for remote outer window proxies. r=bzbarsky,tcampbell,jonco
Remote outer window proxies can't be the target of a CCW, because if
you attempt to wrap them we just create a new outer window proxy.
Therefore, they can't be the target of an Xray wrapper, so they can't
have Xray waivers that do anything useful. However, if we do a
navigation from a local iframe to a remote iframe, we'll transplant a
remote outer window proxy onto a local outer window proxy, which might
have an Xray. This can cause some issues, particularly if we later
navigate back to a different local window.

To work around this, this patch nukes Xray waivers on navigation to a
remote outer window proxy. This makes Xray waiver behavior
inconsistent with the non-Fission behavior, but it is safer to leave
the non-Fission behavior alone for now, for fear of breaking addons.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 14:55:43 +00:00
Razvan Maries
2d23034c48 Backed out changeset 145b187e750f (bug 1570886) for perma xpcshell fails on test_objectgrips-08.js. CLOSED TREE 2019-08-06 20:12:16 +03:00
Andy Wingo
0f20ca98c4 Bug 1570886 - Remove enableBigInt run-time flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D40389

--HG--
extra : moz-landing-system : lando
2019-08-06 10:36:09 +00:00
Mihai Alexandru Michis
22d08168b1 Backed out 2 changesets (bug 1568245) for causing bustages and crashes. CLOSED TREE
Backed out changeset 05c4ca358415 (bug 1568245)
Backed out changeset 26a34510d053 (bug 1568245)
2019-08-06 17:00:01 +03:00
Ted Campbell
f7e78abd00 Bug 1568245 - Move JSScript::global to BaseScript. r=jandem
Combine the LazyScript::function_ and JSScript::global_ fields into the
BaseScript type. This provides a common definition of script realm and
compartment. Currently a non-lazy function script will set this to point
this to the global, but in future it should be made to point to
canonical function for both the lazy and non-lazy cases.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 13:32:43 +00:00
Ted Campbell
19a1cfc52a Bug 1568245 - Replace JSScript::realm with JSScript::global. r=jandem
The realm can be read off the global object and we can remove one step
in the mergeRealms code.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 11:08:16 +00:00
Coroiu Cristina
37c688712e Backed out changeset 596ae187c20b (bug 1570886) for xpcshell failures at devtools/server/tests/unit/test_objectgrips-08.js on a CLOSED TREE 2019-08-06 12:47:50 +03:00
Andy Wingo
3f1bd1cb5a Bug 1570886 - Remove enableBigInt run-time flag r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D40389

--HG--
extra : moz-landing-system : lando
2019-08-05 13:00:28 +00:00
David Teller
21161933e5 Bug 1568138 - Reverse order of Huffman keys;r=arai
In Context 0.1, Huffman keys are represented with a bit order that is the reverse of the bitstream. This
patch ensures that Huffman tables reverse the bit order of their keys upon initialization, so as to allow
fast comparison later in the code.

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

--HG--
extra : moz-landing-system : lando
2019-07-26 14:38:56 +00:00
Paul Bone
e62c920f7f Bug 1568740 - (part 8) Add a test r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D39993

--HG--
extra : moz-landing-system : lando
2019-08-05 07:02:32 +00:00
Paul Bone
0d29e7a21b Bug 1568740 - (part 7) Factor out a common assertion r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D39473

--HG--
extra : moz-landing-system : lando
2019-07-31 04:09:00 +00:00
Paul Bone
283ec79122 Bug 1568740 - (part 6) Remove Nursery::chunkCountLimit() r=jonco
This method & the chunkCountLimit_ variable are unnecessary. The maximum
permitted nursery size is tracked in the GCSchedulingTunables class.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 06:49:43 +00:00
Paul Bone
12058087d6 Bug 1568740 - (part 5) Rename a variable r=jonco
The new variable, 'newMinNurseryBytes' is more in-line with the other
'newMaxNurseryBytes'.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 04:07:32 +00:00
Paul Bone
0d1158699a Bug 1568740 - (part 4) Use Nursery::roundSize() whenever setting the nursery size r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D39283

--HG--
extra : moz-landing-system : lando
2019-08-05 06:48:33 +00:00
Paul Bone
53886c3d77 Bug 1568740 - (part 3) Nursery::roundSize should be a static member r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D39282

--HG--
extra : moz-landing-system : lando
2019-07-31 04:07:04 +00:00
Paul Bone
2b9b4bfe01 Bug 1568740 - (part 2) Calculate the nursery's maximum size in bytes r=jonco
We used to calculate the nursery's maximum size in chunks, and track the
maximum number of chunks permitted. This could lead to some unexpected
behaviour with a larger nursery than requested. Calculating it in bytes is
simpler, avoids this problem, and is more in-line with other calculations.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 04:06:52 +00:00
Paul Bone
1c09017eaf Bug 1568740 - (part 1) Remove Nursery::exists r=nbp
Nursery::exists() behaved exactly the same as Nursery::isEnabled() so use
the latter.

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

--HG--
extra : moz-landing-system : lando
2019-07-31 04:06:45 +00:00
Paul Bone
f04afcd7ec Bug 1388701 - Remove the special nursery size of 0 r=jonco
Rather than make re-enabling the nursery work correctly (because there's
various ways to disable it and we'd need to make sure we're enabling it for
the right reason).  It's simplier just to not disable it for a
gcMaxNurseryBytes of 0, and instead return an error.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 06:37:55 +00:00
Paul Bone
172a9b8cb0 Bug 1570216 - Use minorgc() rather than gc() r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D40008

--HG--
extra : moz-landing-system : lando
2019-07-31 10:28:23 +00:00
Brian Hackett
9663682447 Bug 1570091 Part 1 - Add public API for whether a global has instrumentation enabled, r=tcampbell.
Differential Revision: https://phabricator.services.mozilla.com/D39932

--HG--
extra : moz-landing-system : lando
2019-08-03 23:54:31 +00:00
Sylvestre Ledru
10390f6514 Bug 1562642 - Part 4 - Add missing MPL2 headers in js/ r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D37545

--HG--
extra : moz-landing-system : lando
2019-07-26 21:17:29 +00:00
Matthew Gaudet
fc6e06080d Bug 1569315 - Factor FunctionCreationData into its own header r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D39772

--HG--
extra : moz-landing-system : lando
2019-08-02 14:51:33 +00:00
Matthew Gaudet
3ee5479425 Bug 1569315 - Factor out FunctionCreationData from AllocNewFunction r=tcampbell,jonco
Differential Revision: https://phabricator.services.mozilla.com/D39771

--HG--
extra : moz-landing-system : lando
2019-08-02 14:51:21 +00:00
Jan de Mooij
527019410a Bug 1570241 part 2 - Simplify GeneratorThrowOrReturn by always using an interpreter frame. r=iain
This removes the override-pc and DebugModeOSR special case.

Performance shouldn't be affected because GeneratorThrowOrReturn always enters
the exception handler anyway, and it's pretty uncommon compared to normal
generator resumes.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 09:01:42 +00:00
Jan de Mooij
9ff2c520ae Bug 1570241 part 1 - Remove now unnecessary IsBaselineInterpreterEnabled() checks in the generator code. r=iain
The Baseline JIT can no longer be enabled without the Baseline Interpreter.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 09:01:25 +00:00
Jan de Mooij
34235177c8 Bug 1570246 - Remove now unnecessary setOverridePc/clearOverridePc in DebugEpilogue. r=iain
This was necessary when it got added, but the surrounding code has changed so much
that it's easy to see how the setOverridePc/clearOverridePc is a no-op now.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 09:01:07 +00:00
Jan de Mooij
17c764ce35 Bug 1525664 part 2 - Change BigInt to use CellWithLengthAndFlags. r=tcampbell,wingo
Largely based on a patch from Andy Wingo.

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

--HG--
extra : moz-landing-system : lando
2019-08-01 13:59:09 +00:00
Jan de Mooij
38ea864812 Bug 1525664 part 1 - Move length/flags fields from JSString to a new CellWithLengthAndFlags class. r=tcampbell
The next part will change BigInt to use the same base class.

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

--HG--
extra : moz-landing-system : lando
2019-08-01 13:58:57 +00:00
Tom Ritter
0b9efb84de Bug 1567623 - Add Event Telemetry for cases where eval is triggered as System Principal r=chutten,bzbarsky,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D39559

--HG--
extra : moz-landing-system : lando
2019-08-01 20:45:31 +00:00
Andy Wingo
ea4544617f Bug 1568619 - Disallow BigInt literals for Annex-B non-octal digits r=anba
Differential Revision: https://phabricator.services.mozilla.com/D40196

--HG--
extra : moz-landing-system : lando
2019-08-01 15:59:50 +00:00
Razvan Maries
1fb298eac8 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-08-02 07:11:00 +03:00
Razvan Maries
f57bfff083 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : dom/media/encoder/EncodedFrameContainer.h => dom/media/encoder/EncodedFrame.h
2019-08-02 06:50:08 +03:00
Tooru Fujisawa
405385fc8e Bug 1564365 - Ignore error after resolving async function promise. r=anba,jimb
Differential Revision: https://phabricator.services.mozilla.com/D38960

--HG--
extra : moz-landing-system : lando
2019-08-02 03:44:19 +00:00
Kristen Wright
a2b49ee4f9 Bug 1570157 - Ensure there are enough JSContexts after calling SetFakeCPUCount. r=jandem
calling SetFakeCpuCount may cause GlobalHelperThreadState to create more threads than there are JSContexts in the list. This adds a function to check the length of the context list against the new thread count, and if there are not enough JSContexts, append more to the list.

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

--HG--
extra : moz-landing-system : lando
2019-08-01 16:04:46 +00:00
André Bargull
65de414a0c Bug 1570278 - Part 2: Reimport test262 files. r=jonco
Depends on D40087

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

--HG--
extra : moz-landing-system : lando
2019-08-01 12:33:47 +00:00
André Bargull
71ffc74a23 Bug 1570278 - Part 1: Add 'async' flag for asynchronous test262 tests. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D40087

--HG--
extra : moz-landing-system : lando
2019-08-01 12:33:47 +00:00