Trevor Saunders
d4606517a6
bug 1077549 - remove useless gcc version checks r=glandium
2015-01-15 21:30:05 -05:00
Jim Blandy
b7a9b5ed13
Bug 1121080: Fix comments in Move.h explaining perfect forwarding. DONTBUILD r=waldo
2015-01-13 10:48:58 -08:00
Brian Smith
84be890f8d
Bug 1119075, Part 2: Fix typo, r=waldo
2015-01-14 15:45:48 -08:00
Brian Smith
7cc31e9b8e
Bug 1119776, Part 4: Avoid defining snprintf when MSVC provides it (MFBT), r=waldo
2015-01-08 22:33:03 -08:00
Brian Smith
7dbe571054
Bug 1119080: Convert the already_Addrefed Derived->Base conversion operator into a move constructor, r=waldo
2015-01-07 20:32:55 -08:00
Masatoshi Kimura
9ec583b834
Bug 1120062 - Part 2: Remove use of IsNullPointer. r=waldo
2015-01-15 02:09:11 +09:00
Ehsan Akhgari
9bdf153c1c
Bug 1120622 - Define MOZ_SUPPORT_ASSERT_CONDITION_TYPE_VALIDATION for all gcc versions now that we don't support 4.4 any more; r=froydnj
2015-01-14 09:00:34 -05:00
Ehsan Akhgari
1daf9e4270
Bug 1120620 - Bump the MFBT gcc requirement to 4.6; r=froydnj
2015-01-14 09:00:33 -05:00
Brian Smith
667fd2c5af
Bug 1119075: Use standard unicode literals with VS2015 and later, r=waldo
2015-01-07 13:49:32 -08:00
Ehsan Akhgari
1f84093acc
Backed out changeset 11aebde6e809 (bug 1120059) because of build bustage on Windows
2015-01-13 00:26:16 -05:00
Birunthan Mohanathas
0ee5315a92
Bug 1120059 - Remove MOZ_{HAVE_,}EXPLICIT_CONVERSION. r=Waldo
2015-01-13 06:41:15 +02:00
Xidorn Quan
9ec69f4904
Bug 1119199 - Rewrite HashFunctions with variadic templates. r=waldo
2015-01-13 10:48:10 +11:00
Xidorn Quan
95e222e3a6
Bug 1119199 - Rewrite UniquePtr with variadic template. r=waldo
2015-01-13 10:48:10 +11:00
Xidorn Quan
d071cd0f8e
Bug 1119199 - Rewrite MaybyOneOf with variadic template.
2015-01-13 10:48:10 +11:00
Xidorn Quan
f9d2650ae6
Bug 1119199 - Rewrite Maybe::emplace with variadic template. r=waldo
2015-01-13 10:48:10 +11:00
Wes Kocher
8b2646833a
Backout e891f69a7edc
2015-01-12 14:46:17 -08:00
Wes Kocher
82145d9bee
Backout 73fcb9fa303d
2015-01-12 14:46:01 -08:00
Ehsan Akhgari
edb2bd86cd
Bug 1120622 - Define MOZ_SUPPORT_ASSERT_CONDITION_TYPE_VALIDATION for all gcc versions now that we don't support 4.4 any more; r=froydnj
2015-01-12 16:35:09 -05:00
Ehsan Akhgari
f48483d708
Bug 1120620 - Bump the MFBT gcc requirement to 4.6; r=froydnj
2015-01-12 16:35:08 -05:00
Masatoshi Kimura
40a556102e
Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo
2015-01-11 11:34:52 +09:00
Chris Peterson
90751d5a6c
Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo
2015-01-06 21:39:46 -08:00
Ehsan Akhgari
76db9613c1
Bug 1118486 - Part 2: Remove MOZ_DELETE macro and use = delete
directly; r=Waldo
2015-01-09 09:44:05 -05:00
Chris Peterson
bba1ac8b2d
Bug 1118529 - Remove MSIntTypes.h. r=Waldo
2015-01-06 21:41:15 -08:00
Nicholas Nethercote
18091a4ab9
Bug 1057134 - Remove std::_Debug_message linking hack that's no longer needed. r=dmajor.
...
--HG--
extra : rebase_source : 53ee0cebc42269dcc228cfc5a18b0288e13716f3
2015-01-08 21:59:43 -08:00
Ehsan Akhgari
bd52bd3f4e
Bug 1118486 - Part 1: Use = delete
instead of MOZ_DELETE directly; r=Waldo
...
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:
#!/bin/bash
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "*/.git*" \
! -wholename "obj-*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Ehsan Akhgari
2379621af0
Bug 1119071 - Clean up some code used for older unsupported MSVC versions in MFBT; r=froydnj
2015-01-08 10:40:15 -05:00
David Major
353892f9b9
Bug 1119030: Make MOZ_CRASHes unique to prevent compiler folding. r=Waldo
...
--HG--
extra : rebase_source : f8401e3eee6c62545553452e355c8213480a869d
2015-01-08 19:13:04 +13:00
Ehsan Akhgari
0d93bb1ca7
Bug 1116906 - Move AlreadyAddRefed.h to MFBT; r=froydnj
2015-01-07 11:51:29 -05:00
Ehsan Akhgari
3799d571b8
Bug 1114999 - Part 2: Apply MOZ_NO_ADDREF_RELEASE_ON_RETURN to all smart pointer arrow operators that can return refcounted objects; r=jrmuizel
2015-01-06 16:30:03 -05:00
Ehsan Akhgari
2fc592bff0
Bug 1114987 - Add MOZ_UNSAFE_REF and mark GlobalObject::mGlobalObject as such; r=smaug
2015-01-05 21:01:30 -05:00
Ehsan Akhgari
38ae0bc54f
Bug 1116622 - Give TemporaryRef a take() method semantically equivalent to already_AddRefed::take(); r=froydnj
...
This is in preparation of removing TemporaryRef. It should help make
already_AddRefed a drop-in replacement for it.
2015-01-05 11:32:37 -05:00
Ehsan Akhgari
43cd2ad315
Bug 1117036 - Make it possible to optionally mark functions defined by MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME as MOZ_OVERRIDE; r=froydnj
2015-01-05 11:28:55 -05:00
Chris Peterson
728d92a7d3
Bug 1114724 - Define PRIuSIZE format specifiers for size_t. r=Waldo
2014-12-21 23:30:06 -08:00
Ehsan Akhgari
c9b06aba01
Bug 1114880 follow-up: Rename MOZ_{STRONG,WEAK}_REF to MOZ_{OWNING,NON_OWNING}_REF
...
--HG--
extra : rebase_source : 51fff0785d112b5b87be3c6ff723c8986b37effe
2014-12-23 21:17:50 -05:00
Ehsan Akhgari
29dee5fb33
Bug 1114979 - Annotate some strong and weak references in MFBT; r=froydnj
...
--HG--
extra : rebase_source : 63d9ca59f8f6be06efd087600c8fd5c5f52e5cd1
2014-12-23 17:26:28 -05:00
Dan Gohman
ad1ced437b
Bug 1113445 - SpiderMonkey: Handle -0 properly in SIMD.float32x4.signMask r=bbouvier,waldo
2014-12-23 13:52:49 -08:00
Ehsan Akhgari
2968daa4a4
Bug 1114696 - Add MOZ_STRONG_REF and MOZ_WEAK_REF annotations; r=froydnj
2014-12-22 18:16:55 -05:00
Ehsan Akhgari
c102783127
Bug 1114267 - Part 2: Add MOZ_TRIVIAL_CTOR_DTOR to MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS in non-debug builds; r=jrmuizel
2014-12-22 18:16:16 -05:00
Ehsan Akhgari
e66c428356
Bug 773014 - Part 2: Mark Static{Auto,Ref}Ptr as global-only; r=jrmuizel
2014-12-22 18:10:44 -05:00
Jacek Caban
91512e330e
Bug 1114368 - Use GCC builtins in MathAlgorithms.h on mingw. r=froydnj
2014-12-22 12:38:41 +01:00
Ehsan Akhgari
f18ffaa363
Bug 1114351 - Use mozilla::IsNaN() in DOUBLE_TO_JSVAL(); r=Waldo
...
Note that this requires making sure that IsNaN is constexpr because it
needs to be passed to the constexpr IMPL_TO_JSVALUE() function in
DOUBLE_TO_JSVAL().
--HG--
extra : amend_source : dbd8bb0659b53e7d36d2600ac97f0a753ef772c7
2014-12-21 19:16:49 -05:00
Ehsan Akhgari
76e3eddf4f
Clarify the MakeUnique documentation (comment only change, no bug)
...
DONTBUILD, CLOSED TREE
--HG--
extra : amend_source : 92e8482f1dfb6f9f47acdec1e570d62887257122
2014-12-19 17:51:10 -05:00
Benjamin Peterson
46e70d4001
No bug - fix typo r=me
2014-12-19 12:40:30 -06:00
Ehsan Akhgari
85b0d6dac6
Bug 867348 - Part 2: Apply MOZ_NO_ARITHMETIC_EXPR_IN_ARGUMENT to CheckedInt's constructor; r=jrmuizel,cpearce
...
Note that the analysis currently just looks at the AST subtree of the
function call site and is therefore unable to correctly deal with cases
such as the last two hunks of the change to OggCodecState.cpp. Fixing
the analysis to deal with that would be very difficult, so we currently
adjust the code so that it compiles. The first hunk in that file though
is a real bug that this analysis found.
2014-12-18 15:27:05 -05:00
Ryan VanderMeulen
c51c7d8b9a
Backed out changesets acb4dd16755c and 40768f723990 (bug 867348) for static analysis bustage.
...
CLOSED TREE
2014-12-18 15:59:51 -05:00
Ehsan Akhgari
eef6ef9805
Bug 867348 - Part 2: Apply MOZ_NO_ARITHMETIC_EXPR_IN_ARGUMENT to CheckedInt's constructor; r=jrmuizel
...
Note that the analysis currently just looks at the AST subtree of the
function call site and is therefore unable to correctly deal with cases
such as the last two hunks of the change to OggCodecState.cpp. Fixing
the analysis to deal with that would be very difficult, so we currently
adjust the code so that it compiles. The first hunk in that file though
is a real bug that this analysis found.
--HG--
extra : rebase_source : b44bb6d90d95551d860e0b5a1afcf2bb35cde084
2014-12-18 15:27:05 -05:00
Ehsan Akhgari
6459c43ef8
Bug 1111255 - Remove some code specific to MSVC7 from MFBT; r=froydnj
...
--HG--
extra : amend_source : 3662850820de462e108212626dc7bc1c9e22122e
2014-12-14 14:58:13 -05:00
Ehsan Akhgari
0bf99c7386
Bug 1111247 - Treat C++11 enum types as available on all MSVC versions; r=froydnj
...
Since we don't support anything older than MSVC2005...
--HG--
extra : amend_source : 80ad15c08f19448f8e896989392c78f1437e982d
2014-12-14 14:56:23 -05:00
Nicholas Nethercote
8f6ce9cbe4
Bug 1109407 - Give SegmentedVector a default segment size. r=froydnj.
...
--HG--
extra : rebase_source : 0ceae77c9fec06bbd8c3231434f62fc0e83d9bf1
2014-12-11 14:11:43 -08:00
Ehsan Akhgari
c13155ecb9
Bug 1109729 - Fix more bad implicit constructors in mfbt; r=froydnj
2014-12-10 17:47:42 -05:00