Jason Orendorff
5d60d5ca87
Bug 1312001 - Scramble hash codes securely, to avoid leaking bits of object and symbol addresses.
...
MozReview-Commit-ID: yR1cIjrlPP
--HG--
extra : rebase_source : 871821e53eee5502cd255d52f02665f6845e3f09
2016-11-30 15:31:56 -06:00
Chris Peterson
20bc668a02
Bug 1280295 - Remove MOZ_HAVE_REF_QUALIFIERS. r=froydnj
2017-01-03 22:42:33 -08:00
Xidorn Quan
b4ceaa3474
Bug 1325351 part 3 - Make Maybe accept value from different Maybe type when the inner type is convertible. r=froydnj
...
MozReview-Commit-ID: 2kYTncYh1Or
--HG--
extra : rebase_source : f3263ce10f3afae6e8ac734296dbb0e641c55c99
2016-12-23 11:49:33 +11:00
Xidorn Quan
30961dadd7
Bug 1325351 part 2 - Simplify 'Some' function. r=froydnj
...
MozReview-Commit-ID: AkLVQw9WYwy
--HG--
extra : rebase_source : 97449d0b2376d53ee7761da2a1ab425492c70ba6
2016-12-23 11:32:33 +11:00
Xidorn Quan
3526b1e58d
Bug 1325351 part 1 - Remove workaround for VC in Maybe. r=froydnj
...
MozReview-Commit-ID: Anlrf3D2WtN
--HG--
extra : rebase_source : 9cc2e29e374753ad40774ebd0a0efce9f9449e3b
2016-12-29 10:58:01 +11:00
Sebastian Hengst
82a8828349
Backed out changeset b4d189ca8add (bug 1325351) for spidermonkey cgc and plain shell failure in Maybe.h. r=backout
2016-12-27 10:41:01 +01:00
Sebastian Hengst
fe7c0739e3
Backed out changeset 79754b9b89b7 (bug 1325351)
2016-12-27 10:39:49 +01:00
Sebastian Hengst
6c5fadc6f5
Backed out changeset 45f0755ff471 (bug 1325351)
2016-12-27 10:39:45 +01:00
Xidorn Quan
3cead98957
Bug 1325351 part 3 - Make Maybe accept value from different Maybe type when the inner type is convertible. r=froydnj
...
MozReview-Commit-ID: 2kYTncYh1Or
--HG--
extra : rebase_source : 2d15fb3c252f1c0505d739d9540079ceb9296b39
2016-12-23 11:49:33 +11:00
Xidorn Quan
254c28b64c
Bug 1325351 part 2 - Simplify 'Some' function. r=froydnj
...
MozReview-Commit-ID: AkLVQw9WYwy
--HG--
extra : rebase_source : 8bdd5aeb7761d32c25e55966275d9a0804eb3948
2016-12-23 11:32:33 +11:00
Xidorn Quan
32962b7da7
Bug 1325351 part 1 - Remove workaround for VS2010 in Maybe. r=froydnj
...
MozReview-Commit-ID: Anlrf3D2WtN
--HG--
extra : rebase_source : a90c32e397c5081e51e6c2461d045591afae9320
2016-12-23 11:32:09 +11:00
Luke Wagner
7f0959b60f
Bug 1313351 - Fix js::RefCounted to not do leak checking. r=jandem
2016-12-23 21:13:26 +01:00
Nathan Froyd
a4e86a0fbf
Bug 1322792 - require GCC 4.9 to build; r=glandium
2016-12-23 05:47:31 -05:00
Carsten "Tomcat" Book
0aed7a4ac5
Merge mozilla-central to mozilla-inbound
...
--HG--
rename : testing/docker/base-build/HASH => taskcluster/docker/base-build/HASH
rename : testing/docker/base-test/HASH => taskcluster/docker/base-test/HASH
rename : testing/docker/centos6-build-upd/HASH => taskcluster/docker/centos6-build-upd/HASH
rename : testing/docker/centos6-build/HASH => taskcluster/docker/centos6-build/HASH
rename : testing/docker/decision/HASH => taskcluster/docker/decision/HASH
rename : testing/docker/image_builder/HASH => taskcluster/docker/image_builder/HASH
rename : testing/docker/recipes/tooltool.py => taskcluster/docker/recipes/tooltool.py
rename : testing/docker/tester/HASH => taskcluster/docker/tester/HASH
2016-12-22 16:25:35 +01:00
Ting-Yu Chou
4e68f1ffa7
Bug 1322465 part 8 - Use explicit/MOZ_IMPLICIT for the unary constructors in mfbt/. r=Ehsan
...
MozReview-Commit-ID: 2TpfrAaAIuu
--HG--
extra : rebase_source : 4fb5af1beb94c059cbadfaf27fe3949ae8b85efb
2016-12-16 15:57:15 +08:00
Jeff Walden
c8b800005a
Bug 1319740 - Parametrize ComputeSingleDisplayName based on the character type of the key string, and iterate through the string using iterators, not using null-termination. r=arai
...
--HG--
extra : rebase_source : 1c11bd11300dd467e8579faec677d1b7cb9f2e1b
2016-12-02 14:02:36 -08:00
Luke Wagner
549d7571b3
Bug 1320905 - Add js::RefCounted that uses js_delete (r=waldo)
2016-12-05 15:59:18 -08:00
Carsten "Tomcat" Book
1e97bdd3fb
Backed out changeset f38852711f38 (bug 1320905) for bustage on a CLOSED TREE
...
--HG--
extra : amend_source : 2e75cec3778e0ceb8a5d99d94004968604403f3a
2016-12-05 16:13:36 +01:00
Luke Wagner
0bf74100a8
Bug 1320905 - Add js::RefCounted that uses js_delete (r=waldo)
...
MozReview-Commit-ID: D0mSwdm0nn0
2016-12-05 08:46:27 -06:00
Nathan Froyd
2ebbd09068
Bug 1320752 - remove mozilla/Function.h; r=gerald
...
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Carsten "Tomcat" Book
a666835bf5
merge mozilla-inbound to mozilla-central a=merge
...
--HG--
extra : rebase_source : 7f6b0f633da54f747b30496110e5260a226fe249
2016-11-25 15:36:56 +01:00
James Cheng
c627faaa2b
Bug 1319673 - Make it compile error when instantiate a Variant with duplicate type. r=Tomcat,Waldo
...
MozReview-Commit-ID: IKoLU2FjtzA
--HG--
extra : rebase_source : dcf3ff852af5a985c6c77dcfb1e2a901e92fb869
2016-11-23 15:12:50 +08:00
Matt Woodrow
1985af695f
Bug 1319626 - Part 2: Add BorderLayer class and basic support for them. r=mstange
...
--HG--
extra : rebase_source : de87afc8015649fb5f4a7c4da5f4dc49e19f3d85
2016-11-24 18:11:30 +13:00
Carsten "Tomcat" Book
831c1e052a
Backed out changeset 4909935f8081 (bug 1319626)
2016-11-24 17:02:32 +01:00
Matt Woodrow
15af88120a
Bug 1319626 - Part 2: Add BorderLayer class and basic support for them. r=mstange
2016-11-24 18:11:30 +13:00
Carsten "Tomcat" Book
8b27dda5d1
merge mozilla-inbound to mozilla-central a=merge
2016-11-22 15:53:05 +01:00
James Cheng
c100bc54ce
Bug 1319016 - Part2 - Make IsVariant class use IntegralConstant as true false type. r=froydnj
...
MozReview-Commit-ID: G4ohbnUy049
--HG--
extra : rebase_source : 2c20783fe3556ecd0cc04ec1b37b002d044a4e06
2016-11-21 14:28:49 +08:00
James Cheng
cb26e3892f
Bug 1319016 - Part1 - Make IntegralConstant::value use constexpr. r=froydnj
...
MozReview-Commit-ID: DtrDeMC1f5T
--HG--
extra : rebase_source : 820fb6a1a3562bb3d6aa62294338f1328f0fb1c4
2016-11-21 14:27:58 +08:00
Jan de Mooij
2975885bae
Bug 1283562 - Add mozilla::Result<V, E> for fallible return values. r=jwalden
2016-11-21 12:52:03 +01:00
Ting-Yu Lin
d60ec2b4d6
Bug 1315624 - Delete operator&& and operator|| for CastableTypedEnumResult. r=froydnj
...
Defining these two overloading functions destroys short-circuit evaluation.
MozReview-Commit-ID: Ac7zPtAGOiE
--HG--
extra : rebase_source : 4b3906b5162c1214b9814166f7d0d7de9cb0a7f9
2016-11-07 15:00:16 +08:00
Gerald Squelart
06c4e95cd0
Bug 1316206 - Make RefPtr(decltype(nullptr)) MOZ_IMPLICIT - r=froydnj
...
Making this constructor non-explicit will permit automatic conversions from
'nullptr' into RefPtr types, which I think are not dangerous.
The one spot that this affects is in 'UserDataType nsBaseHashtable::Get(KeyType)',
which does a 'return 0;' into the UserDataType, which could be a bool, an int, a
RefPtr or other. I'm changing that into a C++11 "value initialization", which
falls back to "zero initialization" for PODs: 'return UserDataType{};'.
Also fixed the comment to clarify not-found return values, as Get(KeyType) was
not only used for pointers anyway.
MozReview-Commit-ID: F41VlvTNOZU
--HG--
extra : rebase_source : 71d5dacac75ca188e5c55d45f48a5fca76d953c6
2016-11-08 15:12:33 +11:00
Gerald Squelart
f71d8c43ff
Bug 1316206 - RefPtr construction/assignment from nullptr - r=froydnj
...
Added constructor and operator= from a nullptr, bypassing the incoming pointer
check.
Note that the constructor is 'explicit', because one particular use in
nsBaseHashtable is doing a 'return 0' into a templated type that is a RefPtr in
many cases. Making this new constructor explicit removes it from consideration
in this case.
As it's not strictly necessary to have it MOZ_IMPLICIT (but could still be
nice), I will tackle that in the patch after next.
Also changed all zeroes into nullptr when relevant in RefPtr.h (other system-
wide affected files will be updated in following patch.)
MozReview-Commit-ID: Ds4CEv9hZWI
--HG--
extra : rebase_source : f4ec156b13ea3bdcf32b1a33d76ff9771ad6d1dc
2016-11-10 07:58:10 +11:00
Emanuel Hoogeveen
515f250ac5
Bug 1309573 - Part 1: Define the crash reason in MFBT to let everything use it. r=froydnj
...
--HG--
extra : rebase_source : 12eda091c0453e067a13a80261b814128d27c45c
2016-11-06 22:57:00 -05:00
Nathan Froyd
d585884d50
Bug 1315352 - follow-up - placate the static analysis to re-open this CLOSED TREE; r=me
2016-11-07 19:26:11 -05:00
Nathan Froyd
9238cab1b1
Bug 1315352 - enable Range<T> -> Range<const T> conversion; r=Waldo
...
Since |T*| converts into |const T*|, if we want to rewrite code such as:
void DoSomething(const T*, size_t);
void DoSomethingElse(T* x, size_t len)
{
...
DoSomething(x, len);
}
to use ranges:
void DoSomething(Range<const T>);
void DoSomethingElse(Range<T> x)
{
...
DoSomething(x);
}
we need to ensure this conversion works. gsl::span<T> already provides
something like this as well.
2016-11-07 19:30:34 -04:00
Nathan Froyd
c8d4517ee9
Bug 1315004 - rename Range::start to Range::begin to match C++ conventions; r=botond
...
Among other things, this change means that you can use ranged-for syntax
with Range, which is more fitting and pleasant than the alternative.
2016-11-05 21:13:38 -04:00
Nick Fitzgerald
a19333ea56
Bug 1324829 - Add the mozilla::Result::andThen
method; r=froydnj
2016-12-21 13:05:56 -08:00
Nick Fitzgerald
f40c749727
Bug 1324828 - Add the mozilla::Result::map
method; r=froydnj
2016-12-21 13:05:56 -08:00
Bill McCloskey
4c8471eb15
Bug 1310547 - Add removeAndGetNext/Previous methods to LinkedList (r=froydnj)
2016-10-30 22:04:01 -07:00
Bill McCloskey
c0d229e060
Bug 1310547 - Allow LinkedList to hold RefPtr elements (r=froydnj)
2016-10-30 22:04:00 -07:00
Sebastian Hengst
bff4ebdec8
Backed out changeset c41a71b1c24e (bug 1310547) for failing splitText-normalize.html in reftests on Windows 7 VM debug. r=backout on a CLOSED TREE
2016-10-29 13:48:56 +02:00
Sebastian Hengst
b063eb49cb
Backed out changeset 721e3171510d (bug 1310547)
2016-10-29 13:45:28 +02:00
Sebastian Hengst
d8f4badbd6
Backed out changeset b15d4e773bdd (bug 1310547)
2016-10-29 13:44:48 +02:00
Bill McCloskey
5074379555
Bug 1310547 - LinkedList compiler fixes
2016-10-28 21:27:17 -07:00
Bill McCloskey
5a6e5a85cf
Bug 1310547 - Add removeAndGetNext/Previous methods to LinkedList (r=froydnj)
2016-10-28 20:11:03 -07:00
Bill McCloskey
89ca6e236f
Bug 1310547 - Allow LinkedList to hold RefPtr elements (r=froydnj)
2016-10-28 20:10:37 -07:00
Tooru Fujisawa
57db30aa76
Bug 1311088 - Part 1: Add mozilla::SpecificNaNBits and JS::detail::CanonicalizedNaNBits. r=jwalden
2016-10-29 01:47:30 +09:00
Tooru Fujisawa
0e8929a00e
Bug 1301864 - Remove constexpr from mozilla::IsNaN. r=jwalden
2016-10-29 01:47:30 +09:00
Johannes Schulte
b7ccc22970
Bug 1312620
- Add IsPositiveZero function to mfbt and use it to replace MPhi by MNaNToZero iff c is +0.0. r=nbp, r=waldo
...
--HG--
extra : rebase_source : 7adefc3370c081e17b5e0b090a008e0de0507bb9
2016-10-26 17:47:42 +02:00
James Cheng
3bf8f58291
Bug 1309466 - Add Test for the init value by constructor. r=froydnj
...
MozReview-Commit-ID: 9BguTY6dlRD
--HG--
extra : rebase_source : 8aef83263e8a406f6a4bb54f7cac6368cb75d904
2016-10-19 18:12:11 +08:00