Brian Hackett
091f2992d2
Bug 1573938 - Never collect wrapper JSObjects when recording/replaying, r=mccr8.
...
Differential Revision: https://phabricator.services.mozilla.com/D42011
--HG--
extra : moz-landing-system : lando
2019-08-16 20:51:12 +00:00
Emilio Cobos Álvarez
c3ee3ac3a8
Bug 1418624 - Allow mozilla::Result to be moved, make unwrap{,Err}() move, and add inspect() APIs that return references. r=froydnj
...
Also adjust some of the callers that were either calling unwrap() repeatedly on
the same result, or were doing silly copies, to use inspect().
We could try to use stuff like:
https://clang.llvm.org/docs/AttributeReference.html#consumed-annotation-checking
Differential Revision: https://phabricator.services.mozilla.com/D41425
--HG--
extra : moz-landing-system : lando
2019-08-13 08:26:18 +00:00
Sylvestre Ledru
645f2d5773
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D41559
--HG--
extra : moz-landing-system : lando
2019-08-13 07:15:25 +00:00
Nika Layzell
96a0de728a
Bug 1570725 - Show type of assertion in crashreporter MozCrashReason, r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D40240
--HG--
extra : moz-landing-system : lando
2019-08-06 20:33:34 +00:00
Aaron Klotz
a2b73b8abc
Bug 1570395: Add StaticLocalAutoPtr and StaticLocalRefPtr to XPCOM; r=froydnj
...
This patch adds smart pointers to be used for initializing objects as C++11
"magic statics" -- that is, they are able to take advantage of C++11's
guarantee of thread safety during initialization by atomically constructing
both the smart pointer itself as well as the object being pointed to.
Unlike Static{Auto,Ref}Ptr, they have non-trivial constructors, though they
must still have trivial destructors to prevent emission of atexit calls.
The new classes use the new `MOZ_STATIC_LOCAL_CLASS` annotation which ensures
their instantiations are static locals and prevents non-trivial destructors.
Differential Revision: https://phabricator.services.mozilla.com/D40092
--HG--
rename : xpcom/base/StaticPtr.h => xpcom/base/StaticLocalPtr.h
extra : moz-landing-system : lando
2019-08-02 17:26:37 +00:00
Aaron Klotz
db8a55f024
Bug 1569681: Part 3 - Update mfbt/Attributes.h with new MOZ_STATIC_LOCAL_CLASS macro; r=Ehsan
...
I did not add a separate macro for `MOZ_TRIVIAL_DTOR` as I could not really
think of a use case for it. Let me know if you prefer that I add it as a
distinct macro.
Differential Revision: https://phabricator.services.mozilla.com/D39719
--HG--
extra : moz-landing-system : lando
2019-07-30 18:51:11 +00:00
Mihai Alexandru Michis
fbddadbfab
Backed out 3 changesets (bug 1569681) for causing build bustages. CLOSED TREE
...
Backed out changeset 292cc6853e82 (bug 1569681)
Backed out changeset 4d0a7b968eb0 (bug 1569681)
Backed out changeset be9e5f8f00d0 (bug 1569681)
2019-07-29 23:21:01 +03:00
Aaron Klotz
dd7121c289
Bug 1569681: Part 3 - Update mfbt/Attributes.h with new MOZ_STATIC_LOCAL_CLASS macro; r=Ehsan
...
I did not add a separate macro for `MOZ_TRIVIAL_DTOR` as I could not really
think of a use case for it. Let me know if you prefer that I add it as a
distinct macro.
Differential Revision: https://phabricator.services.mozilla.com/D39719
--HG--
extra : moz-landing-system : lando
2019-07-29 20:10:39 +00:00
Mihai Alexandru Michis
ab5f499ef3
Backed out 3 changesets (bug 1569681) for causing build bustages. CLOSED TREE
...
Backed out changeset 075b818a46fe (bug 1569681)
Backed out changeset 2c543b239808 (bug 1569681)
Backed out changeset 21ea6fea046e (bug 1569681)
2019-07-29 22:53:13 +03:00
Aaron Klotz
567add1b38
Bug 1569681: Part 3 - Update mfbt/Attributes.h with new MOZ_STATIC_LOCAL_CLASS macro; r=Ehsan
...
I did not add a separate macro for `MOZ_TRIVIAL_DTOR` as I could not really
think of a use case for it. Let me know if you prefer that I add it as a
distinct macro.
Differential Revision: https://phabricator.services.mozilla.com/D39719
--HG--
extra : moz-landing-system : lando
2019-07-29 19:38:37 +00:00
Nathan Froyd
5dda12ab15
Bug 1567944 - remove *DISABLE_INTEGRAL_CONSTANT_OVERFLOW_WARNING macros; r=dmajor
...
We don't support MSVC anymore, clang-cl ignores these pragmas, and
nobody actually used the macros anyway.
Depends on D38887
Differential Revision: https://phabricator.services.mozilla.com/D38888
--HG--
extra : moz-landing-system : lando
2019-07-23 08:02:48 +00:00
Nathan Froyd
8a524a8529
Bug 1567944 - remove MSVC-specific warning goo from {Vector,Span}.h; r=dmajor
...
We don't support MSVC anymore, and clang-cl just ignores these pragmas.
Differential Revision: https://phabricator.services.mozilla.com/D38887
--HG--
extra : moz-landing-system : lando
2019-07-23 09:24:28 +00:00
Jed Davis
370bd5030f
Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj
...
MozReview-Commit-ID: 7bbGVIjTTaJ
Differential Revision: https://phabricator.services.mozilla.com/D26737
--HG--
extra : moz-landing-system : lando
2019-06-28 19:46:58 +00:00
Sylvestre Ledru
e77bfc655d
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D38057
--HG--
extra : moz-landing-system : lando
2019-07-16 07:33:44 +00:00
Tom Prince
0cd3337d90
Bug 1458385: Package mar and mbsdiff as a toolchain; r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D24229
--HG--
extra : moz-landing-system : lando
2019-07-11 16:40:13 +00:00
Jed Davis
ffe4e7333c
Bug 1562358 - Move fallible.h into MFBT. r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D36541
--HG--
rename : memory/fallible/fallible.h => mfbt/fallible.h
extra : moz-landing-system : lando
2019-07-10 01:51:15 +00:00
Csoregi Natalia
f30f0ab1f3
Backed out changeset 5bf39249f6e4 (bug 1562358) for spidermonkey bustage. CLOSED TREE
...
--HG--
rename : mfbt/fallible.h => memory/fallible/fallible.h
2019-07-09 19:26:58 +03:00
Jed Davis
f0628ffad3
Bug 1562358 - Move fallible.h into MFBT. r=glandium
...
Differential Revision: https://phabricator.services.mozilla.com/D36541
--HG--
rename : memory/fallible/fallible.h => mfbt/fallible.h
extra : moz-landing-system : lando
2019-07-02 09:08:21 +00:00
Jim Blandy
45737ac244
Bug 1563065: Use const& in mozilla::Result constructors. r=froydnj
...
Change the `ResultImplementation` and `Result` constructors to accept success
values by `const` reference. This makes it possible for `Result` to carry
`MOZ_NON_PARAM` types as success values.
Differential Revision: https://phabricator.services.mozilla.com/D36682
--HG--
extra : moz-landing-system : lando
2019-07-05 23:50:16 +00:00
Kyle Huey
17b36a1a90
Bug 1563046: Move operator LogModule* out of line in debug builds. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D36675
--HG--
extra : moz-landing-system : lando
2019-07-02 23:58:18 +00:00
Emilio Cobos Álvarez
b92a191709
Bug 1562789 - SmallPointerArray should support moves, and have an IsEmpty() helper. r=froydnj
...
This also implicitly deletes its copy-assignment operator and copy-constructor,
which is great since it's a huge footgun.
Differential Revision: https://phabricator.services.mozilla.com/D36549
--HG--
extra : moz-landing-system : lando
2019-07-02 18:50:04 +00:00
Jon Coppeard
26039d2f3b
Bug 1561866 - Refactor HashTable move constructor/assignment operator as per review comments, missed from previous push r=jwalden
2019-07-02 10:55:29 +01:00
Csoregi Natalia
29f8e6aebd
Merge inbound to mozilla-central. a=merge
2019-06-29 12:59:53 +03:00
Kagami Sascha Rosylight
8e0f5ebfdd
Bug 1560658: Add SameValueZero to mfbt/FloatingPoint.h r=jwalden
...
Add ES-defined SameValueZero and replace existing code.
Differential Revision: https://phabricator.services.mozilla.com/D35596
--HG--
extra : moz-landing-system : lando
2019-06-28 23:57:13 +00:00
Narcis Beleuzu
a89b67e772
Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697
) for toolchain bustages on UniquePtrExtensions.h . CLOSED TREE
...
Backed out changeset a8518ea4b594 (bug 1479960)
Backed out changeset 7172762c4b87 (bug 1536697
)
Backed out changeset 2ea5ccb8f3a1 (bug 1426526)
Backed out changeset d892a888fe9c (bug 1426526)
Backed out changeset 2c4d12bdfec3 (bug 1479960)
Backed out changeset 8a322064cf6d (bug 1479960)
Backed out changeset 47d387b6cd4a (bug 1479960)
Backed out changeset 8332565a6943 (bug 1479960)
Backed out changeset 9d7f1835f96f (bug 1479960)
Backed out changeset 0aa8af4965c5 (bug 1479960)
Backed out changeset 036809330a51 (bug 1479960)
Backed out changeset 39e18373e3d3 (bug 1479960)
Backed out changeset 6c2b995a9d30 (bug 1479960)
Backed out changeset 3c2b31744645 (bug 1534780)
Backed out changeset 26bb00a94d5d (bug 1534780)
2019-06-28 22:42:00 +03:00
shindli
67c134b492
Merge mozilla-central to inbound. a=merge CLOSED TREE
2019-06-29 02:23:28 +03:00
Jon Coppeard
afdba4e113
Bug 1561866 - Move alloc policies where possible r=jwalden
...
Patch to use std::move when passing AllocPolicy instances to constructors. This also fixes HashTable move constuction/assignment that previously PodAssigned the whole object including the AllocPolicy base.
Differential Revision: https://phabricator.services.mozilla.com/D36175
2019-06-27 11:56:26 +01:00
Jed Davis
35bc3bb540
Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj
...
MozReview-Commit-ID: 7bbGVIjTTaJ
Differential Revision: https://phabricator.services.mozilla.com/D26737
--HG--
extra : moz-landing-system : lando
2019-06-20 22:40:13 +00:00
Ciure Andrei
72f3f971fb
Backed out 15 changesets (bug 1479960, bug 1426526, bug 1534780, bug 1536697
) for causing build bustages CLOSED TREE
...
Backed out changeset 5645e0cc3915 (bug 1479960)
Backed out changeset a7c09894c6a0 (bug 1536697
)
Backed out changeset 510f03381af9 (bug 1426526)
Backed out changeset 7cf4735a088f (bug 1426526)
Backed out changeset 41080844e645 (bug 1479960)
Backed out changeset fdba3c5f8fd0 (bug 1479960)
Backed out changeset 26a8ebcb2db4 (bug 1479960)
Backed out changeset d0d383e5bae1 (bug 1479960)
Backed out changeset c418095bb7b7 (bug 1479960)
Backed out changeset 7b78b1945532 (bug 1479960)
Backed out changeset c47d47d4073d (bug 1479960)
Backed out changeset 71253b62a633 (bug 1479960)
Backed out changeset ae525f20bdbb (bug 1479960)
Backed out changeset 7fba719355d7 (bug 1534780)
Backed out changeset 771db331860a (bug 1534780)
2019-06-20 19:54:57 +03:00
Jed Davis
19b7fc2cbd
Bug 1534780 - Move ipc::FileDescriptor's UniquePtr instance into MFBT as UniqueFileHandle. r=froydnj
...
MozReview-Commit-ID: 7bbGVIjTTaJ
Differential Revision: https://phabricator.services.mozilla.com/D26737
--HG--
extra : moz-landing-system : lando
2019-06-17 02:19:35 +00:00
Jeff Walden
7761c7efbf
Bug 1554362 - Accumulate external source text as either UTF-8 or UTF-16, in pref-controlled fashion, and then compile the accumulated text using corresponding JSAPI entrypoints without inflating UTF-8 to UTF-16. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34825
--HG--
extra : moz-landing-system : lando
2019-06-15 20:48:40 +00:00
Iain Ireland
00ae116a04
Bug 1548908: Add InfinityBits to FloatingPoint.h r=jwalden
...
We can't generate a constexpr uint64_t containing the bits for positive/negative infinity, because of a (very sensible) static_assert in SpecificNaNBits. This patch adds support to FloatingPoint.h for infinity. The next patch will use it to make JS::InfinityValue constexpr (to match JS::NaNValue).
Differential Revision: https://phabricator.services.mozilla.com/D29869
--HG--
extra : moz-landing-system : lando
2019-06-03 15:59:21 +00:00
Emilio Cobos Álvarez
53fa6bd77e
Bug 1558440 - Use SaturateUint32 for the visible content heuristic. r=bzbarsky
...
Turns out we do have saturated arithmetic in mfbt, I just missed it.
Also, use just an uint32 for the heuristic. Text length is a uint32 anyway, and
it's unlikely we want to decide anything when the value is over the max uint32
value.
Differential Revision: https://phabricator.services.mozilla.com/D34496
--HG--
extra : moz-landing-system : lando
2019-06-11 15:02:17 +00:00
Aaron Klotz
f5fd73482a
Bug 1558272: Add Windows 10 May 2019 Update to WindowsVersion.h; r=dmajor
...
Differential Revision: https://phabricator.services.mozilla.com/D34390
--HG--
extra : moz-landing-system : lando
2019-06-10 18:52:38 +00:00
Mike Hommey
4c0ecc6982
Bug 1554063 - Move decimal to mozglue. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D32435
--HG--
rename : mfbt/decimal/Decimal.cpp => mozglue/misc/decimal/Decimal.cpp
rename : mfbt/decimal/Decimal.h => mozglue/misc/decimal/Decimal.h
rename : mfbt/decimal/UPSTREAM-GIT-SHA => mozglue/misc/decimal/UPSTREAM-GIT-SHA
rename : mfbt/decimal/comparison-with-nan.patch => mozglue/misc/decimal/comparison-with-nan.patch
rename : mfbt/decimal/fix-wshadow-warnings.patch => mozglue/misc/decimal/fix-wshadow-warnings.patch
rename : mfbt/decimal/mfbt-abi-markers.patch => mozglue/misc/decimal/mfbt-abi-markers.patch
rename : mfbt/decimal/moz-decimal-utils.h => mozglue/misc/decimal/moz-decimal-utils.h
rename : mfbt/decimal/to-moz-dependencies.patch => mozglue/misc/decimal/to-moz-dependencies.patch
rename : mfbt/decimal/update.sh => mozglue/misc/decimal/update.sh
rename : mfbt/decimal/zero-serialization.patch => mozglue/misc/decimal/zero-serialization.patch
extra : moz-landing-system : lando
2019-05-29 06:57:28 +00:00
Mihai Alexandru Michis
372773e7f5
Backed out changeset 3edc5be703be (bug 1554063) for mass test failures. CLOSED TREE
...
--HG--
rename : mozglue/misc/decimal/Decimal.cpp => mfbt/decimal/Decimal.cpp
rename : mozglue/misc/decimal/Decimal.h => mfbt/decimal/Decimal.h
rename : mozglue/misc/decimal/UPSTREAM-GIT-SHA => mfbt/decimal/UPSTREAM-GIT-SHA
rename : mozglue/misc/decimal/comparison-with-nan.patch => mfbt/decimal/comparison-with-nan.patch
rename : mozglue/misc/decimal/fix-wshadow-warnings.patch => mfbt/decimal/fix-wshadow-warnings.patch
rename : mozglue/misc/decimal/mfbt-abi-markers.patch => mfbt/decimal/mfbt-abi-markers.patch
rename : mozglue/misc/decimal/moz-decimal-utils.h => mfbt/decimal/moz-decimal-utils.h
rename : mozglue/misc/decimal/to-moz-dependencies.patch => mfbt/decimal/to-moz-dependencies.patch
rename : mozglue/misc/decimal/update.sh => mfbt/decimal/update.sh
rename : mozglue/misc/decimal/zero-serialization.patch => mfbt/decimal/zero-serialization.patch
2019-05-29 09:54:37 +03:00
Mike Hommey
66cb95a768
Bug 1554063 - Move decimal to mozglue. r=jwalden
...
Differential Revision: https://phabricator.services.mozilla.com/D32435
--HG--
rename : mfbt/decimal/Decimal.cpp => mozglue/misc/decimal/Decimal.cpp
rename : mfbt/decimal/Decimal.h => mozglue/misc/decimal/Decimal.h
rename : mfbt/decimal/UPSTREAM-GIT-SHA => mozglue/misc/decimal/UPSTREAM-GIT-SHA
rename : mfbt/decimal/comparison-with-nan.patch => mozglue/misc/decimal/comparison-with-nan.patch
rename : mfbt/decimal/fix-wshadow-warnings.patch => mozglue/misc/decimal/fix-wshadow-warnings.patch
rename : mfbt/decimal/mfbt-abi-markers.patch => mozglue/misc/decimal/mfbt-abi-markers.patch
rename : mfbt/decimal/moz-decimal-utils.h => mozglue/misc/decimal/moz-decimal-utils.h
rename : mfbt/decimal/to-moz-dependencies.patch => mozglue/misc/decimal/to-moz-dependencies.patch
rename : mfbt/decimal/update.sh => mozglue/misc/decimal/update.sh
rename : mfbt/decimal/zero-serialization.patch => mozglue/misc/decimal/zero-serialization.patch
extra : moz-landing-system : lando
2019-05-29 00:59:20 +00:00
Sylvestre Ledru
d57d4905f1
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D30883
--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00
arthur.iakab
af8e458c5f
Backed out changeset a296439a25ff (bug 1519636) for frequent Windows cppunit failures CLOSED TREE
2019-05-24 14:26:01 +03:00
Sylvestre Ledru
c82ea97226
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D30883
--HG--
extra : moz-landing-system : lando
2019-05-24 09:59:17 +00:00
Andi-Bogdan Postelnicu
879d5c9a34
Bug 1553037 - clang-based disable static-analysis in `MOZ_REALLY_CRASH`. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D32132
--HG--
extra : moz-landing-system : lando
2019-05-22 12:50:43 +00:00
Brian Hackett
a231842bb7
Bug 1547084 Part 1 - Remove recordReplayDirective interface and uses, r=mccr8.
...
--HG--
extra : rebase_source : 9fcddba95a4759fe6eb1222199ad8eeaaba2e146
2019-05-12 13:09:55 -10:00
Jon Coppeard
dd429306b0
Bug 1550009 - Make HashTable call templated alloc/free methods with the same type r=froydnj?
...
Differential Revision: https://phabricator.services.mozilla.com/D30371
--HG--
extra : moz-landing-system : lando
2019-05-08 16:42:06 +00:00
Jim Blandy
54f04058eb
Bug 1548133: mozilla::Variant::addTagToHash should be const-this. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D29423
--HG--
extra : moz-landing-system : lando
2019-05-01 12:13:23 +00:00
Emilio Cobos Álvarez
b825dfe4cf
Bug 1549694 - Don't use check as an identifier in IntegerRange.h, since it conflicts with system headers in Mac and Windows. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D30183
--HG--
extra : moz-landing-system : lando
2019-05-07 13:29:17 +00:00
Jean-Yves Avenard
f558e67dd0
Bug 1548409 - Use MOZ_DIAGNOSTIC_ASSERT. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D29587
--HG--
extra : moz-landing-system : lando
2019-05-02 13:24:31 +00:00
Sylvestre Ledru
e226046cb8
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Emilio Cobos Álvarez
c7aac206e4
Bug 1546697 - EnumeratedArray should have a copy assignment operator. r=froydnj
...
I'll use this in a following patch.
Differential Revision: https://phabricator.services.mozilla.com/D28679
--HG--
extra : moz-landing-system : lando
2019-04-25 16:40:47 +00:00
Jim Blandy
52031426cb
Bug 1546853: Implement mozilla::Variant::addTagToHash. r=froydnj
...
Define the Variant::addTagToHash method, which perturbs a hash value according
to the variant's current alternative's tag. This makes it easier to avoid
collisions in variants in which different alternatives might hash similarly.
Tests included.
Differential Revision: https://phabricator.services.mozilla.com/D28768
--HG--
extra : moz-landing-system : lando
2019-04-25 14:03:40 +00:00
Ryan VanderMeulen
a49ab1efff
Bug 1544980 - Update lz4 to version 1.9.1. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D28590
--HG--
extra : moz-landing-system : lando
2019-04-24 10:23:54 +00:00