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
Bobby Holley
2aead0ce0b
Bug 1129247 - Introduce MOZ_DIAGNOSTIC_ASSERT. r=Waldo
2015-02-04 13:13:58 -08:00
Dan Gohman
bae503b3f0
Bug 1125185
- Define MOZ_COLD for marking "cold" functions r=waldo
2015-01-26 17:30:19 -08:00
Jan de Mooij
2c357beb68
Bug 1004028 - Enable assertion type validation on MSVC. r=Waldo,terrence
2015-01-24 14:40:27 +01:00
Trevor Saunders
d4606517a6
bug 1077549 - remove useless gcc version checks r=glandium
2015-01-15 21:30:05 -05: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
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
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
Chris Peterson
df0925ad6d
Bug 990764 - Remove MOZ_ASSUME_UNREACHABLE and MOZ_NIGHTLY_ASSERT macros. r=Waldo
2014-06-29 19:21:50 -07:00
Jeff Walden
0e97ceb06f
Bug 1064451 - Convert assertion-expression-type checking code to not perform a function call. r=froydnj
...
--HG--
extra : rebase_source : d88adf94137dca875444c4aa8c7b3e9ce9c7dedd
2014-09-07 01:04:09 -07:00
Nicholas Nethercote
ab815d0c3b
Bug 1036789 - Convert the third quarter of MFBT to Gecko style. r=Ms2ger.
...
--HG--
extra : rebase_source : 668cd394806203ddfa34bd4f226335ff26c846b5
2014-07-10 19:10:17 -07:00
Nicholas Nethercote
b408c9c462
Bug 1026319 - Convert the second quarter of MFBT to Gecko style. r=froydnj.
...
--HG--
extra : rebase_source : 98d2557c7fe4648d79143c654e7e31767fca2e65
2014-06-12 23:34:08 -07:00
Nicholas Nethercote
eea4b77322
Bug 1014377 - Convert the first quarter of MFBT to Gecko style. r=froydnj.
...
--HG--
extra : rebase_source : b3b2da775e2c0e8a6ecbed70e7bd0c8f7af67b47
2014-05-29 22:40:33 -07:00
Chris Peterson
314cc438bf
Bug 990764 - Add MOZ_ASSERT_UNREACHABLE and MOZ_MAKE_COMPILER_ASSUME_IS_UNREACHABLE. r=Waldo
2014-04-05 18:07:09 -07:00
Sylvestre Ledru
d2af9270e2
Bug 997145 - Add a attribute in order to silent a Clang static analyzer check r=nfroyd
...
--HG--
extra : amend_source : 9ef01d8df4e8797981f770621a3885d456db5801
2014-05-06 16:23:08 +02:00
Ehsan Akhgari
968ba73f9a
Bug 1005730 - Print assertion stacks for MOZ_ASSERT and MOZ_CRASH for code that lives inside libxul; r=froydnj
...
The hyphenation changes are necessary because hnjalloc.h #defines FILE to
a custom data structure, which clashes with using |stderr| in Assertions.h.
2014-05-05 22:02:04 -04:00
Benoit Jacob
f23b1789f1
Bug 920292 - Check the types of assert conditions - r=froydnj
2014-04-30 22:39:13 -04:00
Birunthan Mohanathas
98106963b6
Bug 989460 - Part 1: Add MacroArgs.h for macros related to implementing variadic macros. r=Waldo
...
This also converts MOZ_RELEASE_ASSERT and MOZ_BEGIN_NESTED_ENUM_CLASS to use the new helper macros.
2014-04-24 10:48:00 +02:00
Bobby Holley
fcbdac1a1a
Bug 928636 - Whitespace changes. r=Waldo
2013-11-25 09:37:16 -08:00
Bobby Holley
764749a1a5
Bug 928636 - Implement MOZ_RELEASE_ASSERT. r=Waldo
2013-11-25 09:37:15 -08:00
Vladimir Vukicevic
e5f44f1883
Bug 888658 - Assertions.h fixup for windows. r=jwalden
...
--HG--
extra : rebase_source : 7e7fb741860c2603aa1b838eff7761ddcd50e867
2013-10-15 09:07:00 +02:00
Ehsan Akhgari
a58a6ce8fc
Bug 895322 - Part 5: Stop #defining MOZ_STATIC_ASSERT in C++ code; r=Waldo
...
--HG--
extra : rebase_source : 463c9918228e3f46c909cc7cad45c9d2913b0152
2013-07-18 14:39:20 -04:00
Ms2ger
f4ac238f7a
Bug 896341 - Update include guards and modelines in MFBT; r=Waldo
2013-07-24 09:41:39 +02:00
Justin Lebar
c889f21d8f
Bug 820686 - Follow-up: s/MOZ_ASSUME_NOT_REACHED/MOZ_ASSUME_UNREACHABLE/. rs=waldo
...
I'd meant to do this, but I only got as far as the comment in mfbt. Oops!
--HG--
extra : rebase_source : 3cfe3ef1bf401eb7d9a10fcabcfb39008e9553a4
2013-06-28 19:20:12 -07:00
Justin Lebar
d9ea536e65
Bug 820686 - Rename MOZ_NOT_REACHED() and JS_NOT_REACHED() to MOZ_ASSUME_NOT_REACHED(). r=waldo
...
This includes a mechanical renaming of MOZ_NOT_REACHED to MOZ_ASSUME_NOT_REACHED in JS. Later patches in this queue clean up whitespace errors and so on.
2013-06-28 18:38:31 -07:00
Justin Lebar
cab87a0cce
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Justin Lebar
db90a60eb4
Bug 763070 - Give MOZ_CRASH() an optional string argument. r=waldo
2013-06-28 18:38:30 -07:00
Jeff Gilbert
f7ed63bfd1
Bug 822431 - Use MOZ_UNLIKELY in MOZ_ASSERT. r=waldo
2013-04-19 16:20:35 -07:00
Jeff Walden
eb12f04c77
Bug 851237 - Mark the static-assert typedef with an unused attribute so it doesn't trigger compiler warnings. r=dholbert
...
--HG--
extra : rebase_source : 20ad6cd988f2cf5ddedfbb7dd99e368b96c2242a
2013-03-21 18:26:06 -07:00
Chris Peterson
ab09fb1d90
Bug 833254 - Fix MFBT's gcc version checks. r=waldo
2013-01-21 19:42:15 -08:00
Trevor Saunders
6380733341
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Jeff Walden
f6138fbe65
Eliminate Assertions.h's dependency on Types.h, for a narrower interface and minimized dependencies. No bug, r=Ms2ger
...
--HG--
extra : rebase_source : b5c79dc444ef7277f2624ffe2407bca25a1054cd
2012-06-11 16:16:46 -07:00
Jeff Walden
602c48c764
Bug 426163 - Make MOZ_CRASH() use TerminateProcess on Windows rather than exit so that destructors and atexit handlers aren't called. r=ted
...
--HG--
extra : rebase_source : 0e340516158d36931fd00824a6ff9e665a9f9354
2012-06-11 16:16:46 -07:00
Ed Morley
976e703db3
Backout 1c5a8d617bff (bug 765990), 617cb36ead59, b3067d05a76a (bug 760995), 79f9a61a1e43 (bug 426163) for bustage
2012-06-21 10:00:36 +01:00
Jeff Walden
c37e657ef7
Eliminate Assertions.h's dependency on Types.h, for a narrower interface and minimized dependencies. No bug, r=Ms2ger
...
--HG--
extra : rebase_source : 0d68ef6274ad697bf4ff49038ef19368174dad54
2012-06-11 16:16:46 -07:00
Jeff Walden
9383c3b0c7
Bug 426163 - Make MOZ_CRASH() use TerminateProcess on Windows rather than exit so that destructors and atexit handlers aren't called. r=ted
...
--HG--
extra : rebase_source : 631b1707f06852f4c47acbfb9c7401b22507267b
2012-06-11 16:16:46 -07:00
Jeff Walden
452db7706c
Bug 761859 - Reinstate a __debugbreak() at the start of MOZ_CRASH() on Windows so that deliberate crashes on Windows appear as breakpoints, not invalid writes. r=bsmedberg
2012-06-18 12:01:57 -07:00
Jeff Walden
fb7e6c0e93
Bug 763000 - Remove MOZ_Assert. r=Ms2ger, r=terrence, r=ted
2012-06-07 14:41:11 -07:00
Jeff Walden
4a95d2f73e
Bug 761857 - Make MOZ_CRASH on Linux crash in such a way that an attached debugger will park on the line containing the assertion. r=ted
...
--HG--
extra : rebase_source : 0628998cb0e2eec047426375c971aac1a84ebed1
2012-06-05 16:49:19 -07:00
Jeff Walden
43b2c7abdd
Style patrol to make everything conform to mfbt/STYLE. No bug, r=sparky
2012-06-03 20:36:43 -07:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Bas Schouten
88b755bca9
Bug 719776 - Part 2: Make MOZ_CRASH and MOZ_ASSERT expand inline. r=waldo
2012-04-12 02:03:07 +02:00
Phil Ringnalda
dc765d4953
Back out 4b82f26f8593:2fcf9cbedd48 (bug 743393, bug 719776) for bustage
2012-04-11 09:06:40 -07:00
Bas Schouten
4458bdfe56
Bug 719776 - Part 2: Inline MOZ_Assert and MOZ_Crash. r=waldo
2012-04-11 16:55:31 +02:00
Rafael Ávila de Espíndola
69ee70a91b
Bug 723114 - Need a macro that expands to __builtin_unreachable on release builds. r=jwalden.
2012-02-23 14:32:30 -05:00
Jeff Walden
bdb7386eef
Bug 728512 - Make MOZ_ASSERT(cond, reason) work correctly on MSVC by hacking around a compiler bug. r=glandium
...
--HG--
extra : rebase_source : f955359300e02b27f0efda63bbb1983d85a56a5a
2012-02-17 18:47:12 -08:00
Mike Hommey
3f5c329700
Bug 717540 - Remove MFBT dependency on JS_Assert, add MOZ_Assert, and use it for WTF assertions. r=waldo,r=khuey
2012-02-13 15:48:23 +01:00
Mike Hommey
de636eb93e
Backout 8eef38643ceb (bug 717540) and 78941a969e20 (bug 725230) because of windows debug bustage
2012-02-13 16:35:13 +01:00
Mike Hommey
4262e5f87c
Bug 717540 - Remove MFBT dependency on JS_Assert, add MOZ_Assert, and use it for WTF assertions. r=waldo,r=khuey
2012-02-13 15:48:23 +01:00