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

71690 Коммитов

Автор SHA1 Сообщение Дата
Ted Campbell 62f883c040 Bug 1564923 - Remove dead BytecodeCompiler::deoptimizeArgumentsInEnclosingScripts. r=khyperia
The last use of this method was removed in Bug 1538375.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 16:23:50 +00:00
Boris Zbarsky 5062731c15 Bug 1565688. Remove unused IOService arg from NS_NewURI. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D37968

--HG--
extra : moz-landing-system : lando
2019-07-15 13:39:51 +00:00
Ted Campbell f0774d58e3 Bug 1565945 - Compute LazyScript::TreatAsRunOnce flag the same as JSScript. r=jandem
This has equivalent overall behavior as before, but computes the
precise LazyScript::TreatAsRunOnce flag rather than checking the extra
conditions during delazification. The heuristics can be computed using
just the LazyScript information so the result is the same.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 12:41:39 +00:00
Ted Campbell b4aa417b65 Bug 1565945 - Add JSScript::CreateFromLazy method. r=jandem
Decouple the JSScript creation for delazification from needing
CompileOptions. When JSScript and LazyScript become unified, this
operation will become a no-op.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 12:42:24 +00:00
Ted Campbell f9df373194 Bug 1565556 - Remove JSScript::hasTryNotes/ScopeNotes/ResumeOffsets. r=jandem
With the current design of ImmutableScriptData, even empty arrays have a
legal span so we no longer need to change the hasTryNotes and friends
helpers. In most cases we were performing a range-for afterwards so this
has simpler semantics.

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

--HG--
extra : moz-landing-system : lando
2019-07-15 05:44:14 +00:00
Jan de Mooij d5de1f486e Bug 1564017 part 7 - Enable the Baseline Interpreter in the browser. r=tcampbell
The 50 threshold for Baseline is pretty arbitrary and will likely change later.

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

--HG--
extra : moz-landing-system : lando
2019-07-13 11:21:12 +00:00
Andreea Pavel c8af1a97a0 Merge mozilla-central to autoland on a CLOSED TREE 2019-07-13 00:53:27 +03:00
Andreea Pavel 3fed932eaa Merge mozilla-inbound to mozilla-central a=merge 2019-07-13 00:45:18 +03:00
Jan de Mooij fb7e73ed08 Bug 1564887 - Simplify stack checks in Baseline. r=tcampbell
We no longer need the early-check mechanism if we always do environment chain
initialization + stack check before initializing locals. A comment mentions that
environment initialization can only happen _after_ pushing locals, but that
didn't match the code anyway: if the early stack check failed, we would end up
in initEnvironmentChain _without_ having initialized locals.

Ion prologue bailouts now resume in the prologue after environment chain
initialization, so the bailout code needed some small changes to always
initialize the environment chain instead of relying on the Baseline
prologue doing that.

Overall this is much simpler and deletes about 70 lines of code.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 14:28:54 +00:00
Daniel Varga b1a511fe36 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-07-12 13:07:05 +03:00
Daniel Varga 883bfd385e Merge mozilla-inbound to mozilla-central. a=merge 2019-07-12 12:58:03 +03:00
Jan de Mooij 5ea23033d2 Bug 1565175 - Fix HeapSnapshotHandler to not add nodes to |visited| until they're written to the core dump. r=fitzgen
Because ShouldIncludeEdge considers the |origin| node as well, it was possible for
the old code to 'miss' nodes and never write them to the core dump even though we
also wrote some edges with the node as referent.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 18:41:43 +00:00
Ted Campbell 3274645afe Bug 1564932 - Fix XDRScript handling of lazy scripts. r=jandem
XDR should be a structural clone, so check if we have a lazy script
directly when deciding if it should be coded. Whether relazification
should be supported is a VM decision, not an XDR decision. This gives a
cleaner round-trip of data when using XDR.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 08:20:36 +00:00
Daniel Varga cf2048abd6 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-07-12 13:03:23 +03:00
Paul Bone 73ed10d490 Bug 1564313 - Make some style changes to prose in comments r=sfink
* Remove double spaces after periods.
 * Add periods at the end of sentances.
 * Fix a spelling error.
 * Use a simpler sentance.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 06:03:41 +00:00
Paul Bone 94ced028b9 Bug 1564313 - Update comments to // style in nursery code r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D37365

--HG--
extra : moz-landing-system : lando
2019-07-12 06:03:26 +00:00
Ted Campbell 2fd6509104 Bug 1565556 - Rename SharedScriptData to ImmutableScriptData. r=jandem
After this patch a JSScript will have Private, Runtime, and Immutable
script data type attached to it.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 16:19:32 +00:00
Ted Campbell 79d14f02b0 Bug 1565556 - Cleanup SharedScriptData optional arrays. r=jandem
Add an 'Offset' type-alias to better document as well as fixing up
out-of-date comments. This also moves the optArrayOffset to beginning of
structure.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 15:34:11 +00:00
Paul Bone eb77b16ecc Bug 1562187 - (part 4) Move an assertion to it makes more sense r=jandem
Move this assertion so it's nearer to where its assuption is used.

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

--HG--
extra : moz-landing-system : lando
2019-07-10 08:55:56 +00:00
Paul Bone 492004b6d3 Bug 1562187 - (part 3) Remove ifdefs from around Poison calls in Nursery.cpp r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D37361

--HG--
extra : moz-landing-system : lando
2019-07-10 08:55:53 +00:00
Paul Bone 75a0c9286c Bug 1562187 - (part 2) Use correct ifdef r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D37360

--HG--
extra : moz-landing-system : lando
2019-07-10 08:54:56 +00:00
Paul Bone 972012a873 Bug 1562187 - (part 1) All paths through Poison code make asan/valgrind calls r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D37359

--HG--
extra : moz-landing-system : lando
2019-07-10 08:54:42 +00:00
Csoregi Natalia fcccd2b6b0 Merge mozilla-central to autoland. CLOSED TREE 2019-07-12 02:06:45 +03:00
Csoregi Natalia d7d499fe52 Merge inbound to mozilla-central. a=merge 2019-07-12 02:00:51 +03:00
Brindusan Cristian 73b4ae530d Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-07-11 19:23:36 +03:00
André Bargull 7261a71c7e Bug 1560300: Retrieve "resolve" property only once in PromiseAll, PromiseRace, and PromiseAllSettled. r=arai
This optimisation added to the specification doesn't improve performance for us,
because we're already optimising the lookups in Promise.all & co. So we only
need to perform the initial check for `PromiseLookup::isDefaultPromiseState`
outside of the main loop in `CommonPerformPromiseAllRace` and that's more or
less all what needs to be changed.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 11:20:44 +00:00
Tooru Fujisawa 37f4196a65 Bug 1563489 - Part 1: Add BinASTParserPerTokenizer::finish{Eager,Lazy}Function and remove BinASTParserPerTokenizer::buildFunction. r=Yoric,mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D36931

--HG--
extra : moz-landing-system : lando
2019-07-11 19:20:05 +00:00
Tooru Fujisawa 9bcdd5d23f Bug 1563489 - Part 0: Remove generator related code from BinAST. r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D36930

--HG--
extra : moz-landing-system : lando
2019-07-11 19:19:49 +00:00
Brian Hackett fa5392d307 Bug 1448166 Part 2 - Add Debugger.Environment.prototype.scopeKind, r=jimb.
--HG--
extra : rebase_source : ac2346d76b2e78ed052a126481268ccb9452e8bf
2019-07-09 21:15:49 +00:00
Brian Hackett c6f2944343 Bug 1448166 Part 1 - Add a kind for top level function lexical scopes, r=tcampbell.
--HG--
extra : rebase_source : 83971892975c1ced097382e8fcd0c4e73598e457
2019-07-09 21:13:07 +00:00
Andrew Halberstadt 3486ba642c Bug 1563797 - Use 'backports.shutil_which' instead of 'which' across the tree r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D37097

--HG--
extra : moz-landing-system : lando
2019-07-11 14:03:39 +00:00
Jon Coppeard 08d49ccfbf Bug 1563755 - Add tenured heap survival rate telemetry r=pbone data-review=chutten
This records the size of the heap at the start of collection and maintains a count of bytes freed during collection. From this we calcuate a 'survival rate' at the end of collection. The intention is that this is like the nursery's promotion rate so it's the fraction retained rather than the fraction freed.

Differential Revision: https://phabricator.services.mozilla.com/D37452
2019-07-09 18:05:03 +01:00
Jon Coppeard 6a0c5fd4fd Bug 1563755 - Refactor GC telemetry collection r=pbone
Factor out methods to send GC telemetry at the end of a slice and at the end of a collection. Rename heap size fields to indicate that they are for total heap size in bytes as opposed to the size of collected zones.

Differential Revision: https://phabricator.services.mozilla.com/D37451
2019-07-09 18:02:11 +01:00
André Bargull f78523ece3 Bug 1564125 - Part 3: Collapse negative and positive zero for additional operands to avoid possible bailouts. r=nbp
Negative zero can be treated the same way as positive zero for MInArray,
MStoreTypedArrayElementHole, and MPostWriteElementBarrier. This avoids possible negative zero
bailouts for these operations.

Depends on D37260

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

--HG--
extra : moz-landing-system : lando
2019-07-09 13:11:05 +00:00
André Bargull 715da186e5 Bug 1564125 - Part 2: Avoid negative zero bailouts for MStoreElementHole and MFallibleStoreElement. r=nbp
Use the correct index position for MStoreElementHold and MFallibleStoreElement to avoid possible
negative zero bailouts for these operations.

Depends on D37259

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

--HG--
extra : moz-landing-system : lando
2019-07-09 13:11:05 +00:00
André Bargull 4c9d7b096d Bug 1564125 - Part 1: Don't call into the runtime for negative zero in LDoubleToString. r=nbp
The string representation of negative zero is equal to the one for positive zero, so there's no
need to call into the runtime for that case.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 13:11:05 +00:00
André Bargull d8ea37c7c3 Bug 1564330: Update tzdata in ICU data files to 2019b. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D37541

--HG--
extra : moz-landing-system : lando
2019-07-10 15:50:28 +00:00
Paul Bone 4da7b3c453 Bug 1562550 - (part 5) Avoid unnecessary poisoning between GCs r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D36878

--HG--
extra : moz-landing-system : lando
2019-07-11 02:32:43 +00:00
Paul Bone 0559968c6e Bug 1562550 - (part 4) We don't need to poison the start chunk here r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D37349

--HG--
extra : moz-landing-system : lando
2019-07-11 02:26:15 +00:00
Paul Bone b142046e3a Bug 1562550 - (part 3) Poison unused memory when we shrink the nursery r=jonco
When we shrink the nursery below one chunk, poison and mark as inaccessible
the now unused part of that chunk.

This is the only patch in this patch series that adds extra memory poisoning.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 02:32:43 +00:00
Paul Bone 957d91ea53 Bug 1562550 - (part 2) Don't poison memory unnecessarily during Nursery::init r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D36876

--HG--
extra : moz-landing-system : lando
2019-07-11 02:31:51 +00:00
Paul Bone 628a54fb08 Bug 1562550 - (part 1) Add a poisonRange method to NurseryChunk r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D36875

--HG--
extra : moz-landing-system : lando
2019-07-10 08:29:17 +00:00
Cosmin Sabou 60a8cce828 Merge mozilla-central to autoland.
--HG--
rename : gfx/wr/wrench/reftests/filters/filter-flood-ref.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood-ref.yaml
rename : gfx/wr/wrench/reftests/filters/filter-flood.yaml => gfx/wr/wrench/reftests/filters/svg-filter-flood.yaml
2019-07-11 07:06:41 +03:00
Cosmin Sabou bb9fec28eb Merge mozilla-inbound to mozilla-central. a=merge 2019-07-11 07:04:54 +03:00
Adam Holm d8df575e5d Bug 1546786 - Renames converting guard cacheIR ops. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D37454

--HG--
extra : moz-landing-system : lando
2019-07-10 18:08:21 +00:00
Iain Ireland e0b0c531fb Bug 1561732: Remove ion-sincos from fuzz-flags.txt r=gkw
Differential Revision: https://phabricator.services.mozilla.com/D37671

--HG--
extra : moz-landing-system : lando
2019-07-11 01:12:25 +00:00
Jeff Walden 3b5e9c949f Bug 1564589 - Implement an infallible JS::NumberToString that stores null-terminated ToString(Number value) into a static-length buffer. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D37487

--HG--
extra : moz-landing-system : lando
2019-07-10 23:55:09 +00:00
arthur.iakab fcec9d5243 Merge mozilla-central to mozilla-inbound
--HG--
extra : rebase_source : a169b55c78d3644d678e2f1ce7df2b2576d42e7f
2019-07-11 00:57:20 +03:00
Barret Rennie 6fc21f48e9 Bug 1289211 - Rename InfallibleTArray to nsTArray in js/ r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D36962

--HG--
extra : moz-landing-system : lando
2019-07-10 03:31:42 +00:00
Jon Coppeard 26b5825760 Bug 1564078 - Fix use of invocation kind that was previously lost and refactor malloc threshold updates r=sfink
This restores the use of GC invocation kind that was inadvertantly removed by the patch in bug 1395509 comment 33 from the call to ZoneAllocator::updateAllGCThresholds in GCRuntime::endSweepingSweepGroup.  Also refactors ZoneMallocThreshold::computeZoneTriggerBytes a little.

Differential Revision: https://phabricator.services.mozilla.com/D36924
2019-07-04 16:01:53 +01:00