Dan Gohman
3a947820fc
Bug 1131783 - Optimize away null checks in non-POD Vectors too r=waldo
2015-02-12 08:37:01 -08:00
Dan Gohman
45a9e8d6b5
Bug 1131783 - Optimize away null checks in Vectors of POD r=waldo
2015-02-12 08:37:01 -08:00
Dan Gohman
fa56e119f1
Bug 1131783 - Mark various unlikely conditions as MOZ_UNLIKELY r=waldo
2015-02-12 08:37:01 -08:00
Mike Hommey
837ac3f6f8
Bug 1121269 - Add an AutoCleanLinkedList template that removes and deletes elements upon destruction. r=Waldo
2015-02-11 10:21:02 +09:00
Andrew McCreight
a38ee3890e
Back out Bug 1127201 (part 1) for various problems.
2015-02-06 15:05:08 -08:00
Nicholas Nethercote
f9f2575aa6
Bug 1127201 (part 1) - Let MOZ_ASSERT take a string variable as the second arg. r=Waldo.
...
ASSERT_UNLESS_FUZZING() (which is defined multiple times!) caused problems due
when __VA_ARGS__ was empty which is most of the time. So I just disallowed the
optional string, which was only used in a small fraction of the occurrences.
I don't particularly like this patch. I'm not convinced its any better than
just removing the nsPrintfCString()s like I did earlier, but I've done it to at
least show what's involved.
2015-02-04 19:42:29 -08:00
Nick Fitzgerald
fea8ff2431
Bug 1129559 - Implement move construction for mozilla::MaybeOneOf; r=jandem
2015-02-04 13:34:18 -08:00
Bobby Holley
2aead0ce0b
Bug 1129247 - Introduce MOZ_DIAGNOSTIC_ASSERT. r=Waldo
2015-02-04 13:13:58 -08:00
Xidorn Quan
3f9814a13c
Bug 1126701 - Add IntegerRange for iterating integers. r=waldo
2015-02-04 19:07:32 +11:00
Xidorn Quan
e7e326d1e6
Bug 1127044 part 2 - Add ReverseIterator template class. r=waldo
2015-02-04 19:07:32 +11:00
Xidorn Quan
a9a5b796da
Bug 1127044 part 1 - Add IteratorTraits facility. r=waldo
2015-02-04 19:07:32 +11:00
Birunthan Mohanathas
48741e37ed
Bug 1120796 - Part 2: Replace ConvertibleToBool hackarounds with explicit bool operators. r=Waldo
2015-02-03 18:52:36 +02:00
Birunthan Mohanathas
37ea92b9bf
Bug 1120796 - Part 1: Prepare code for explicit bool operators. r=Waldo
2015-02-03 18:52:28 +02:00
Dan Gohman
bae503b3f0
Bug 1125185
- Define MOZ_COLD for marking "cold" functions r=waldo
2015-01-26 17:30:19 -08:00
Masatoshi Kimura
f1b5ace064
Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo
2015-01-26 07:22:11 +09:00
Masatoshi Kimura
e4e75cdb99
Bug 1111290 - Part 2: Non-mechanical changes. r=waldo
2015-01-26 07:22:08 +09:00
Masatoshi Kimura
222483b6f4
Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo
2015-01-26 07:22:07 +09:00
Jan de Mooij
2c357beb68
Bug 1004028 - Enable assertion type validation on MSVC. r=Waldo,terrence
2015-01-24 14:40:27 +01:00
Xidorn Quan
1856893b09
Bug 1124029
- Fix unsigned/signed mismatch in MathAlgorithms. r=waldo
2015-01-23 08:29:36 +11:00
Masatoshi Kimura
858165fd65
Bug 895582 - Get rid of MOZ_ENUM_TYPE. r=waldo
2015-01-21 22:35:19 +09:00
Ehsan Akhgari
db37f3e8bf
Bug 1121489 follow-up: Addresss the review comment
2015-01-19 09:07:57 -05:00
Ehsan Akhgari
2a911035e1
Bug 1121489 - Make it possible to construct a RefPtr from an already_AddRefed; r=froydnj
...
This will pave the way towards having a MakeAndAddRef function
that returns an already_AddRefed and can be used in graphics code.
2015-01-19 09:00:01 -05:00
Ben Kelly
be8a2d4402
Bug 1122160 Follow-up to fix spelling typo in comment. rs=themaid DONTBUILD
2015-01-16 10:22:43 -05:00
Ben Kelly
8e1c7e285b
Bug 1122160 Add operator+=() and operator-=() to DebugOnly r=froydnj
2015-01-16 09:59:32 -05:00
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