Justin Lebar
7d53f5862c
Bug 876691 - Unbreak mfbt/Atomics.h for Windows x64. r=me
2013-05-28 15:26:25 -04:00
Joshua Cranmer
c6a8662716
Bug 868285 - Fix static checking builds, part 2: Add MOZ_NONHEAP_CLASS. r=ehsan
...
--HG--
rename : build/clang-plugin/tests/TestStackClass.cpp => build/clang-plugin/tests/TestNonHeapClass.cpp
2013-05-27 16:05:02 -05:00
Joshua Cranmer
2cf82af930
Bug 868285 - Fix static checking builds, part 1: infer MOZ_STACK_CLASS. r=bsmedberg
2013-05-27 16:04:18 -05:00
Justin Lebar
c52e5d4a3e
Bug 873800 - Add compare-and-exchange to mfbt/Atomics.h. r=froydnj
...
--HG--
extra : rebase_source : c9e455ed249e6b3cd0f532d240abfb602e2e88a8
2013-05-24 13:10:47 -04:00
Justin Lebar
499d8e2007
Bug 873799 - Add an explicit barrier before __sync_lock_test_and_set in mfbt/Atomics.h r=froydnj
...
--HG--
extra : rebase_source : 64d23f1df2fef8719413800ebb0afe6f51d1e3af
2013-05-24 13:10:47 -04:00
Jeff Walden
d8bfd62d2e
Bug 873585 - Silence a vacuous-comparison-against-0 warning when compiling with gcc 4.5, at least. Also make IsSigned/IsUnsigned actually work on floating-point types. r=froydnj
...
--HG--
extra : rebase_source : 149695699ddb5cde3058a066785c2dc4c7c221e7
2013-05-17 11:07:02 -07:00
Mike Hommey
6334a79a0e
Bug 864035 - Add an atomic RefCounted and WeakPtr implementation. r=Waldo
2013-05-18 09:52:53 +02:00
Nathan Froyd
803ce3d328
Bug 732043 - part 2 - add tests for mfbt/Atomics.h; r=Waldo; original-author=jcranmer
2013-04-25 15:10:38 -04:00
Nathan Froyd
a8d9cc8795
Bug 732043 - part 1 - add mfbt/Atomics.h; r=Waldo; original-author=jcranmer
2013-04-22 14:12:03 -04:00
Mats Palmgren
46d63936fa
Bug 871032 - Move the MOZ_ASSERTs after the declarations to work around MSVC Opt build failure when this file is compiled as C. r=roc
2013-05-13 16:28:29 +02:00
Nathan Froyd
eba34f22d7
Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo
2013-05-01 16:55:13 -04:00
Benoit Jacob
2123c47135
Bug 869194 - CheckedInt should consistently reject unsupported types - r=Waldo
2013-05-08 17:25:15 -04:00
Benoit Jacob
dd563aab02
Bug 869685 - Reintroduce long long support in CheckedInt - r=Waldo
2013-05-08 17:25:03 -04:00
Jeff Walden
9836ebf69c
Bug 869238 - Silence various -Wtype-limits warnings in Casting.h when instantiated with types with various size relationships. r=froydnj
2013-05-06 16:38:42 -07:00
Jeff Walden
1781e6fbf9
Back out cff7378485bc (bug 869238), Windows bustage (at least). r=redness
2013-05-07 13:45:43 -07:00
Jeff Walden
7ac2f661b9
Bug 869238 - Silence various -Wtype-limit warnings in Casting.h when instantiated with types with various size relationships. r=froydnj
2013-05-06 16:38:42 -07:00
Mats Palmgren
401785134b
Bug 867530 - Move PresArena poisoning code to MFBT. r=roc
...
--HG--
rename : layout/base/tests/cpp-tests/TestPoisonArea.cpp => mfbt/tests/TestPoisonArea.cpp
2013-05-07 20:48:59 +02:00
Jeff Walden
3dab75b670
Bug 862657 - Make PodCopy work even when copying to a volatile address, and add PodArrayCopy for copying one fixed-size array into another array of the same size. r=froydnj
...
--HG--
extra : rebase_source : 7bb59639b95ec7a05272ab0215bbc04a210c11d5
2013-05-06 11:05:52 -07:00
Jeff Walden
9ae592d022
Bug 862657 - Implement mozilla::IsConst and mozilla::IsVolatile. r=froydnj
...
--HG--
extra : rebase_source : acc955d825069fa1db7b4f86117d50dbbfc05826
2013-03-05 15:44:02 -08:00
Jonathan Watt
2e0e04481e
Bug 853525, part 9 - Changes to Decimal code as a series of patches for update.sh. r=Waldo
2013-05-06 00:23:18 +01:00
Jonathan Watt
2321448ca0
Bug 853525, part 8 - Enable building of mfbt/decimal. r=Waldo
2013-05-06 00:23:17 +01:00
Jonathan Watt
1e5cfc09a2
Bug 853525, part 7 - Make mfbt/decimal/Decimal{.h/.cpp} use Mozilla/std dependencies instead of Blink core dependencies. r=Waldo
2013-05-06 00:23:17 +01:00
Jonathan Watt
3ea5a5f4ea
Bug 854531, part 6 - Add MFBT_API markers to Decimal methods. r=Waldo
2013-05-06 00:23:17 +01:00
Jonathan Watt
3b06a88e9b
Bug 854531, part 5 - Fix the handling of NaN in Decimal::operator== and Decimal::operator!=. r=Waldo
2013-05-06 00:23:17 +01:00
Jonathan Watt
cccfd99acd
Bug 854531, part 4 - Fix bug in Decimal serialization so that it won't display zero as 0.00 etc. r=Waldo
2013-05-06 00:23:16 +01:00
Jonathan Watt
1875156601
Bug 854531, part 3 - Fix bugs in Decimal::floor() and Decimal::ceiling(). r=Waldo
2013-05-06 00:23:16 +01:00
Jonathan Watt
1ea84d3685
Bug 854531, part 2 - Add update.sh script to mfbt/decimal/. r=Waldo
2013-05-06 00:23:15 +01:00
Jonathan Watt
93c57b8860
Bug 854531, part 1 - Import a vanilla copy of r148833 of Blink core's Decimal class from http://src.chromium.org/viewvc/blink/trunk/Source/core/platform/ . r=Waldo
2013-05-06 00:23:15 +01:00
Stephen Kraemer
7b93b707c5
Bug 836078 - Replace all gcc __GNUC__ version checks with MOZ_GCC_VERSION_AT_LEAST macro. r=dvander
2013-05-01 15:45:05 -04:00
Jeff Walden
f685a81f44
Bug 865036 - Add a Casting.h header to hold various casting methods, right now including a SafeCast method that asserts in-rangeness. r=froydnj
...
--HG--
extra : rebase_source : ef175e4c89d07cddbe866a40fc2ca521fa32c441
2013-04-23 14:36:51 -07:00
Jeff Walden
7c75754cf9
Bug 865036 - Implement mozilla::Is{S,Uns}igned. r=froydnj
...
--HG--
extra : rebase_source : 6df6f2810a71bc6331be54708516bbafb24ea5c0
2013-04-23 14:35:18 -07:00
Jeff Walden
0b73ef54e8
Bug 865036 - Implement mozilla::IsFloatingPoint and mozilla::IsArithmetic. r=froydnj
...
--HG--
extra : rebase_source : 6813cd2a4c0b3ef460d43a5dcc21c8220702cd08
2013-04-23 14:24:26 -07:00
Jeff Gilbert
5f91aeadc3
Bug 822431 - Use MOZ_UNLIKELY in MOZ_ASSERT. r=waldo
2013-04-19 16:20:35 -07:00
Ehsan Akhgari
8b9a514d5f
Bug 863884 - Prepare WeakPtr to support a thread-safe variant; r=Waldo
2013-04-19 17:59:01 -04:00
Bill McCloskey
1c9af5c86d
Bug 863116 - MOZ_ALWAYS_INLINE should not inline in debug builds (r=Waldo)
2013-04-19 10:55:34 -07:00
Joshua Cranmer
b721b5a37b
Bug 856108 - Port static analyses to clang, part 1: stack-class. r=ehsan
2013-04-11 22:20:02 -05:00
Chris Peterson
992d78fc81
Bug 798172 - Apple's default clang 4.2 does not have __builtin_bswap16(). r=Waldo
2013-04-03 23:40:39 -07:00
Nathan Froyd
920087ef25
Bug 798172 - part 3 - convert SHA1.cpp to use Endian.h; r=Waldo
2013-01-30 16:47:00 -05:00
Nathan Froyd
7182225404
Bug 798172 - part 2 - add tests for mfbt/Endian.h; r=Waldo
2013-01-30 16:46:45 -05:00
Nathan Froyd
e168c4f292
Bug 798172 - part 1 - add mfbt/Endian.h; r=Waldo
2013-01-30 16:45:39 -05:00
Nathan Froyd
2b1852c15c
Bug 853646 - part 1 - add mozilla::IsIntegral to TypeTraits.h; r=Waldo
2013-04-02 11:49:58 -04:00
Nathan Froyd
b93bdbae87
Bug 853646 - part 0 - add mozilla::Remove{Const,Volatile,CV} to TypeTraits.h; r=Waldo
2013-04-02 11:49:26 -04:00
Ehsan Akhgari
7eba4d3dbb
Follow-up to bug 857790 - Undo the unintentional change to PodOperations.h
2013-04-03 18:59:24 -04:00
Ehsan Akhgari
425c80f927
Bug 857790 - Convert AudioParam time values to ticks relative to the source stream, not the destination stream; r=roc
2013-04-03 17:28:49 -04:00
Jeff Walden
6dc883dea3
Bug 856850 - Implement a PodOperations.h header that includes all the Pod* functions currently in jsutil.h. r=Ms2ger
2013-04-01 22:43:19 -07:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Jeff Walden
e37cee4864
Add [specref] references to all the section-comments in TypeTraits.h, to further ease reading/searching. Followup to bug 853988, suggested by froydnj
...
--HG--
extra : rebase_source : 896b6abb3430b890a8de699fc044d0cd0624936a
2013-03-25 12:05:19 -07:00
Jeff Walden
c889ec22d2
Bug 853988 - Replace uses of Conditional<..., TrueType, FalseType>::Type with IntegralConstant<bool, ...>. r=froydnj
...
--HG--
extra : rebase_source : 1c2deaac32b2ddefa67bb935f961a182aad31ad2
2013-03-25 11:11:55 -07:00
Jeff Walden
8660e4410a
Bug 853988 - Move IsPod to the right place. r=froydnj
...
--HG--
extra : rebase_source : 6ea8970965e953b5f372385f933bbc796bfc2015
2013-03-22 00:22:05 -07:00
Jeff Walden
e7abab6b2d
Bug 853988 - Move Conditional to the right place. r=froydnj
...
--HG--
extra : rebase_source : e0d78a6fe6a07f07dfa054dda2fc74edffe0374b
2013-03-22 00:20:41 -07:00
Jeff Walden
92e60aa10b
Bug 853988 - Move IsConvertible to the right place. r=froydnj
...
--HG--
extra : rebase_source : dc7d5a6e21e098a7826230a28f70d6305fa2103f
2013-03-22 00:18:58 -07:00
Jeff Walden
5817b74362
Bug 853988 - Move IsPointer and IsSame to the right locations. r=froydnj
...
--HG--
extra : rebase_source : d945be1ef45f3f6d6a1bed67d4e2c240c882d1ef
2013-03-22 00:17:59 -07:00
Jeff Walden
7f9988dad9
Bug 853988 - Add C++11 section references to TypeTraits.h. r=froydnj
...
--HG--
extra : rebase_source : bd98561dd154b19460efaca16debcfc8082804ec
2013-03-22 00:14:38 -07:00
Joshua Cranmer
969dfd9705
Bug 767563 - Add a clang static checker, part 3: Move the MOZ_MUST_OVERRIDE macro to MFBT. r=Waldo
2013-03-23 21:14:43 -05:00
Jeff Walden
68a9571093
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
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Jeff Walden
6ff26d90f3
Bug 847480 - Remove unused (verified by manual inspection and try) DeprecatedAbs overloads so it's harder for new uses to pop up. r=Ms2ger
...
--HG--
extra : rebase_source : dff4d6d2c7006fbc296c9ae0b08d3e66219f7846
2013-03-09 14:20:14 -08:00
Oleg Romashin
3b391ccab1
Bug 848611 - MathAlgorithms.h:116: error: 'fabsl' was not declared in this scope. r=Waldo
2013-03-14 00:16:55 -07:00
Jeff Walden
cc0ac55d6b
Bug 847480 - Convert DeprecatedAbs overloads taking floating point (except for nscoord uses, when nscoord is optionally a floating point type) to Abs. r=Ms2ger
2013-03-05 15:43:44 -08:00
Jeff Walden
83a067942d
Bug 847480 - Make mozilla::Abs return the unsigned type, for the integral types. r=bjacob
2013-03-05 15:43:38 -08:00
Jeff Walden
dc8144eec0
Bug 847480 - Copy the existing mozilla::Abs as mozilla::DeprecatedAbs, to allow mozilla::Abs to return an unsigned type when possible. r=Ms2ger
2013-03-05 15:43:23 -08:00
Benoit Jacob
5015e3f471
Bug 849667 - Fix/simplify CheckedInt's use-outside-of-MFBT setup - r=Waldo
2013-03-12 15:40:29 -04:00
Jeff Walden
9c781ad1b2
Bug 849666 - Make CheckedInt<T>::operator-() not depend on undefined behavior when negating minimum signed values, and add a test for this. Patch is something of a tag-team effort by bjacob and me. r=bjacob
2013-03-11 18:45:22 -07:00
Jeff Walden
8c2403ba13
Bug 847521 - Allow CheckedInt<signed char> in addition to char/unsigned char. char != signed char (but is guaranteed to have the same representation as either signed char or unsigned char, for backwards-compatibility reasons), so we have to handle signed char as a third character type. r=bjacob
...
--HG--
rename : content/html/content/src/HTMLObjectElement.h => content/html/content/src/HTMLObjectElement.cpp
extra : rebase_source : d07d72b78fcbae31483d726703b3605561295684
2013-03-01 21:49:25 -08:00
Jeff Walden
bf23cd54f1
Bug 835542 - Implement mozilla::Abs. r=Ms2ger
...
--HG--
extra : rebase_source : a3e62ff76365d27cc4cb10e4fee942ddb8b10b79
2013-02-15 19:55:36 -08:00
Jeff Walden
21d4a821b2
Bug 835542 - Add an IntegralConstant helper to TypeTraits.h, and use it where the spec says we should be using it. r=bjacob
...
--HG--
extra : rebase_source : a1272a85489771ce1cbe5c3aaa678b5b04b49226
2012-12-16 18:20:17 -05:00
Gregory Szorc
85e5647383
Bug 784841 - Part 18c: Convert /memory, /mfbt, /mozglue; r=ted f=Ms2ger
2013-02-25 12:47:17 -08:00
Nicholas Nethercote
1d9c94fd87
Bug 563195: Avoid triggering -Wshadow warnings in mfbt/. r=Waldo
2013-02-17 22:56:32 -08:00
Christian Holler
2f0c5d33a1
Bug 838557 - Create a common interface for ASan/Valgrind functions. r=mats,bhackett
2013-02-15 00:50:11 +01:00
Rafael Ávila de Espíndola
9b94369d2b
Bug 839338 - ASan alloc/dealloc mismatch in _M_create_nodes/_M_destroy_nodes. r=waldo.
2013-02-12 08:30:16 -05:00
Christian Holler
75b6c0996b
No bug - Include missing header in mfbt/ASan.h. r=me
2013-02-10 13:11:04 +01:00
Jeff Walden
15f60ef632
Rename the |static const bool result| member of IsSame, IsPod, and IsPointer to |value| to be consistent with every other type trait. I have no idea how I managed to consistently not notice this during review. Followup to bug 723228, r=typo
2013-02-08 22:59:54 -08:00
Razvan Cojocaru
15c13f8d76
Bug 723228 - nsTArray::AssignRange should use memcpy when possible. r=jlebar for the XPCOM changes, r=jwalden for js/mfbt changes
...
--HG--
extra : rebase_source : 2442a0d29ae0fa7edd0312d980cbc270a4f33134
2013-02-08 13:18:49 -08:00
Christian Holler
028393e58d
Bug 838150 - Add ASan and Valgrind annotations to JS LifoAlloc. r=bhackett
2013-02-06 14:30:01 +01:00
Nicholas Cameron
0b1477418d
Bug 837297; change RefCounted::dead to a define; r=waldo
2013-02-05 16:53:57 +13:00
Chris Peterson
1432379efc
Bug 833254 - Fix MFBT's gcc version checks. r=waldo
2013-01-21 19:42:15 -08:00
Jeff Walden
8f98ecc84c
Bug 836438 - Always implement nsresult using an unsigned 32-bit integer type. r=ehsan
...
--HG--
extra : rebase_source : f9d9d7772decee36a27ef09eb018b9912bf7bf6b
2013-01-30 15:32:44 -08:00
Mike Hommey
017feef7d9
Bug 834769 - Change the "destroyed" state value for RefCounted. r=Waldo
2013-01-29 09:35:16 +01:00
Jeff Walden
582b2e961d
Bug 835648 - Move typed enum support to a new header. r=Ms2ger
2013-01-28 16:33:17 -08:00
Ryan VanderMeulen
18cfd86d7e
Backed out changeset 3eb633a97c1f (bug 835648) for suspected Windows orange on a CLOSED TREE.
2013-01-29 19:01:45 -05:00
Jeff Walden
129a025dee
Bug 835648 - Move typed enum support to a new header. r=Ms2ger
...
--HG--
extra : rebase_source : 8c912fba889c1c5435e3619714071502fbfb30a3
2013-01-28 16:33:17 -08:00
Mike Hommey
6e52d18740
Backout changeset bc2bbe9836c7 (bug 834769) for bustage.
2013-01-29 09:49:16 +01:00
Mike Hommey
592595bea6
Bug 834769 - Change the "destroyed" state value for RefCounted. r=Waldo
2013-01-29 09:35:16 +01:00
Chris Peterson
0cff339be7
Bug 831633 - Back out 1c7bdeefa8ee (bug 830315) for introducing hundreds of non-virtual dtor warnings. r=waldo
2013-01-24 22:59:46 -08:00
Mounir Lamouri
f929fe87f0
Bug 828472 - Introduce AutoJSContext and SafeAutoJSContext helpers and use them for date handling in nsHTMLInputElement. f=bz r=bholley
2013-01-21 12:38:54 +00:00
Matt Woodrow
8a4599ca60
Bug 822906 - Add SplayTree to mfbt. r=waldo
2013-01-16 12:12:05 +13:00
Chris Peterson
0c00315d90
Bug 785918 - Part 2: Add MOZ_HAVE_CXX11_CONSTEXPR check and constexpr version of ArrayLength(). r=waldo
...
--HG--
extra : rebase_source : e826347bfdedc949614c9cca294858b7150dfda1
2013-01-07 23:29:00 -08:00
Mike Hommey
1bbb07f9dd
Bug 830315 - Don't enable MOZ_FINAL and MOZ_DELETE on clang unless compiling as C++11. r=Waldo
2013-01-15 10:12:49 +01:00
Ehsan Akhgari
104014cc99
Rewrite RangedPtr's constructor accepting a C-style array in C++, no bug, rs=Waldo
...
This will let the compiler correctly deduce N without making the
caller explicitly pass it in.
2013-01-14 19:48:42 -05:00
Terrence Cole
10fccde0ad
Bug 811060 - Implement mozilla::Range; r=Waldo
...
--HG--
extra : rebase_source : a303294de705fca72eb31f7b5c7db787d0bc7260
2012-11-12 16:37:33 -08:00
Chris Peterson
4c4bf85b10
Bug 785918 - Part 1: Replace PR_ARRAY_SIZE() with mozilla::ArrayLength() and MOZ_ARRAY_LENGTH(). r=ehsan
2013-01-05 23:37:25 -08:00
Terrence Cole
5929f21c7f
Bug 799252 - Remove SkipRoots in jsstr.cpp; r=Waldo
2012-10-16 16:30:02 -07:00
Chris Peterson
deed807086
Bug 826144 - Add MOZ_UTF16_HELPER() intermediary macro to handle UTF-16 stringification and concatenation correctly. r=waldo
...
--HG--
extra : rebase_source : 4c68df10e6e59af34db1e325232d4671492cc72f
2013-01-02 14:49:09 -08:00
Masatoshi Kimura
bc1410bc83
Bug 823917 - Use C++11 final on MSVC11. r=waldo
2013-01-03 04:47:26 +09:00
Chris Peterson
ae15b310c6
Bug 796948 - Create Char16.h header file for char16_t type. r=waldo
2012-12-12 00:34:20 -08:00
Trevor Saunders
e3b2aa92a5
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Jeff Walden
6c3e077664
Bug 756709 - Make ThreadLocal::set crash on failure (which really can only happen if per-thread memory for the TLS entry couldn't be allocated, which should be really rare). r=Ms2ger
...
--HG--
extra : rebase_source : ecda463195c9b67ef6b7d02ef32ed0aa56bc11bc
2012-12-17 15:40:50 -05:00
Jeff Muizelaar
2eb25e2d11
Bug 821804 - Allow unitialized WeakPtrs to work properly. r=Waldo
...
This ensures that the WeakPtr always points at a valid object and avoids the
need to test for that during operations.
2012-12-18 11:37:14 -05:00
Jeff Walden
7146c23e80
Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger
2012-12-14 18:58:45 -05:00
Chris Peterson
07acbe70d0
Bug 818941 - Fix misspelling of __GXX_EXPERIMENTAL_CXX0X__ macro. r=ehsan
2012-12-06 00:05:26 -08:00
Brian Smith
79b9a37db4
Bug 812531: Make MOZ_TYPE_SPECIFIC_SCOPED_POINTER_TEMPLATE comply with two-phase template name lookup rules, as clang requires, r=khuey
...
--HG--
extra : rebase_source : 5c4c8c0ff4f2dfcb4d83e63376036a5bf45ab0ab
2012-11-15 17:02:11 -08:00
Kyle Huey
df5a32b6e5
Bug 812824: Use a clean struct for inheritance on root nodes. r=dbaron,Waldo
2012-11-28 13:21:36 -08:00
Anthony Jones
240d159624
Bug 793013 - Add EnumSet to replace 1 << n bit type bitfields. r=Waldo
2012-11-06 18:23:13 -05:00
Ehsan Akhgari
da3a7f10d8
Bug 808876 - Part 0: Only allow the usage of enum classes in gcc 4.5 and newer; r=bzbarsky
...
Older gccs such as gcc 4.4 cannot handle comparison operators taking
arguments of the enum class type, which would cause valid C++ code
to not compile. So we should just use our fallback enum class
emulation on those platforms.
--HG--
extra : rebase_source : 3cd2fd2faabc36c767e76442efabf55f8a54c83f
2012-11-06 09:38:32 -05:00
Jeff Walden
e6ce95979f
Add more thisDuringConstruction() use in LinkedList to silence warnings. No bug, r=lumpy
...
--HG--
extra : rebase_source : 7dfb17c38e4efd4ea4bdc48326e792814b990658
2012-11-05 13:36:50 -08:00
Jeff Walden
793acbdae0
Bug 803439 - Add removeFrom() that takes a list and asserts the element is initially present in it. r=jlebar
...
--HG--
extra : rebase_source : c2aad35774a71167f97f940fb416735862b78950
2012-10-23 17:43:23 -07:00
Benoit Jacob
940634a237
Bug 784309 - CheckedInt.h Intel C++ compilation issue - r=Ms2ger
2012-11-02 11:30:40 -04:00
Rafael Ávila de Espíndola
111917a5c3
Bug 807112 - change MOZ_EXPORT_API and MOZ_IMPORT_API to not take the type. r=Waldo.
2012-10-31 18:18:12 -04:00
Justin Lebar
b25232b0f8
Bug 803688 - Re-land backed out part of bug 803688 now that we have bug 805207 fixed.
...
This changeset reverts the partial-backout cset 5c82f5a5e90d, taking us back to the state we were in at bug 803688's initial landing, rev 592c3465a742.
2012-10-31 13:30:35 -04:00
Rafael Ávila de Espíndola
62e42f569e
Bug 805416 - refactor macros to avoid the need for empty macro arguments. r=Waldo.
...
--HG--
extra : rebase_source : 86242ff253d464870cdcc321f9b1f6f08460b839
2012-10-30 16:12:22 -04:00
Rafael Ávila de Espíndola
27bc84084e
Bug 806538 - Update double-conversion and document the version we are at. r=Waldo.
...
--HG--
extra : rebase_source : 5394aab0cb622ad3723ca01a91712ce7cc9ae145
2012-10-30 15:30:08 -04:00
Ed Morley
415466b584
Backout fdb7c9649a07 (bug 805967), 72003517a631 (bug 806538), 354250ed1e72 (bug 770538), ea6edd3749ce (bug 770538) for bustage on a CLOSED TREE
2012-10-30 17:56:20 +00:00
Rafael Ávila de Espíndola
c1b7f7b096
Bug 806538 - Update double-conversion and document the version we are at. r=Waldo.
...
--HG--
extra : rebase_source : 7e7ec80943329342c2305370dd0fe6bde46433a4
2012-10-30 11:48:56 -04:00
Jacek Caban
874e8b2ffd
Bug 805773 - TestSHA1.exe fails to link on mingw r=espindola
2012-10-29 10:21:33 +01:00
Jeff Muizelaar
424c086cdc
Bug 805951. Fix __GNU_MINOR__ typo in NullPtr.h
...
Pointed out by Chris Peterson.
2012-10-26 16:29:55 -04:00
Ehsan Akhgari
439bc84904
Add a comment about MOZ_BEGIN_ENUM_CLASS/MOZ_END_ENUM_CLASS to say that they should not be used for nested enums, no bug
...
DONTBUILD
2012-10-26 13:56:54 -04:00
Ryan VanderMeulen
ce3b1256de
Partial backout of bug 803688 to fix Win7 debug xpcshell perma-purple. r=jlebar
2012-10-24 22:46:14 -04:00
Rafael Ávila de Espíndola
36d17fb8f3
Bug 777122 - Add telemetry reporting of late writes. r=jlebar.
2012-10-24 15:42:54 -04:00
Rafael Ávila de Espíndola
413c99d3c7
Bug 805096 - Better explain why we use __attribute__((weak)). r=glandium.
...
--HG--
extra : rebase_source : 8db4439601c47c3f969d11694e5859dc44ca68d0
2012-10-24 14:33:45 -04:00
Justin Lebar
29ab4a7b54
Bug 803688 - Remove LinkedListElements from their list when they're destructed, and assert that a LinkedList is empty when it's destructed. r=waldo
2012-10-24 12:40:35 -04:00
Ehsan Akhgari
53b927b709
Bug 802806 followup - fix the comment
2012-10-22 17:05:07 -04:00
Justin Lebar
9de35188e7
Bug 803692 - Make SHA1Sum::update() take a void* instead of a uint8_t*. r=waldo
2012-10-22 16:32:34 -04:00
Jeff Walden
20abf11fd5
Give LinkedListElement a thisDuringConstruction() method, and use it in member initialization to silence an MSVC compiler warning. No bug, r=sparky
...
--HG--
extra : rebase_source : b0859f6d169255196cb59d40504ed08b1074e9a4
2012-10-18 18:39:54 -07:00
Ehsan Akhgari
d1330c1949
Bug 802806 - Make mfbt's IsBaseOf work with multiple inheritance; r=Waldo
2012-10-17 17:37:53 -04:00
Joe Drew
101fab9469
Bug 801120 - Support T* WeakPtr<T>::get(). r=Ms2ger,ehsan
...
--HG--
extra : rebase_source : 662ef6f39966956be5588d9bd7508dbe59a2c537
2012-10-12 18:17:58 -04:00
Jeff Walden
50aa5b0b82
Minor style nits in WeakPtr code forgotten by me when reviewing. No bug, r=sparky
...
--HG--
extra : rebase_source : e8b8071218c9280e970ba4525a3e8ebab729d4eb
2012-10-08 16:03:52 -07:00
Jeff Walden
dede03d303
Move TestBloomFilter out of XPCOM and into mfbt/tests, now that it exists. No bug, r=testingonlychange
...
--HG--
extra : rebase_source : 85a2a56bcc02bf122ee7fd21d16dffd534d1c98d
2012-10-03 17:09:59 -07:00
Jeff Walden
45fceaa15e
Bug 798634 - Style patrol on mfbt/SHA1.*. r=espindola
...
--HG--
extra : rebase_source : 7282b80ebe5f23b669a5f3142f3a6e50b6776789
2012-08-28 17:27:05 -07:00
Terrence Cole
e7ed15573e
Bug 798624 - Specialize low-level character access to JSStableString; r=luke, rs=Waldo
...
Implements JSStableString::chars() and pushes StableCharPtr into the interface
at several key choke-points. This will solidly enforce the requirement that we
have uninlined jschar*s in places that we may GC with a jschar* on the stack.
--HG--
extra : rebase_source : 122785b474af371ed22d43a6bfcb600c05440405
2012-10-08 15:04:36 -07:00
Terrence Cole
98b249d2c0
Backout 754a1efb5b37 for bustage on a CLOSED TREE
2012-10-08 15:42:39 -07:00
Terrence Cole
d079920e40
Bug 798624 - Specialize low-level character access to JSStableString; r=luke, rs=Waldo
...
Implements JSStableString::chars() and pushes StableCharPtr into the interface
at several key choke-points. This will solidly enforce the requirement that we
have uninlined jschar*s in places that we may GC with a jschar* on the stack.
--HG--
rename : content/html/content/test/test_bug797113.html => content/html/content/test/test_bug780993.html
extra : rebase_source : 19b24e3decfc37c7387ea941233aec8239550927
2012-10-08 15:04:36 -07:00
Jeff Muizelaar
644f4e96df
Bug 792954. Add a WeakPtr implementation to use instead of nsISupportsWeakReference. r=joe,ehsan,Waldo
...
This patch also replaces the usage of nsISupportsWeakReference in RasterImage as an example.
--HG--
extra : rebase_source : ac6a039dcc3227a04ac4c2221f38856bb308c695
2012-10-04 15:45:07 -04:00
Brian Smith
86b02dd41f
Bug 767240 - Make it easier to create type-specific scoped pointers (TYPE_SPECIFIC_SCOPED_POINTER_TEMPLATE), r=jwalden
...
--HG--
extra : rebase_source : 845b429d56ee1abb296925624928c355451edc3c
2012-07-24 15:36:06 -07:00
Ms2ger
da175e40b7
Bug 792689 - Add some double negations to the macros in Likely.h; r=Waldo
2012-09-20 13:17:05 +02:00
Kyle Huey
a67b677be2
Try backing out bug 792689 because it's the only non-merge cset in the MaxHeap regression range for both m-i and m-c.
2012-09-20 12:42:13 -07:00
Ms2ger
87fb623851
Bug 792689 - Add some double negations to the macros in Likely.h; r=Waldo
2012-09-20 13:17:05 +02:00
Jeff Muizelaar
d6345f3cb2
Bug 782647. Move the nullptr workaround macros to MFBT so that it can be shared. r=waldo
...
This also changes the header to use compiler detection instead of a
configure test. This makes the header more portable because
it doesn't require the configure infrastructure.
2012-09-01 16:16:17 -04:00
Raphael Catolino
516fde7d59
Bug 781313 - Move the euclidGcd and lcm algos form nsStyleAnimation.cpp to mfbt/MathAlgorithms.h r=dbaron,luke
2012-08-26 22:58:23 -03:00
Ehsan Akhgari
0fd9123eac
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Rafael Ávila de Espíndola
46187ed184
Bug 784381 - Build bustage for comm-central - SHA1.h - Cannot open include file: 'stdint.h. r=ms2ger.
2012-08-21 12:43:33 -04:00
Rafael Ávila de Espíndola
8f3f5d21c4
Bug 781627 - Copy security/nss/lib/freebl/sha_fast.c to mfbt. r=jlebar.
2012-08-20 15:01:55 -04:00
Aryeh Gregor
62eee98b10
Bug 782919 - Add zero-arg constructor to enum class workaround; r=ehsan
2012-08-16 14:58:12 +03:00
Ed Morley
8f4f1ad013
Backout 19ec214f806c (bug 782916), 88b802832f52 (bug 782919), f16429aa2210 (bug 780474) for Android build failures
2012-08-17 12:25:12 +01:00
Aryeh Gregor
8be87f0303
Bug 782919 - Add zero-arg constructor to enum class workaround; r=ehsan
2012-08-16 14:58:12 +03:00
Aryeh Gregor
a6dad5d25a
Bug 751554 part 2 - Support strongly-typed enums in MFBT; r=ehsan
2012-08-01 15:19:00 +03:00
Aryeh Gregor
f0251cc7b5
Bug 751554 part 1 - Support explicit underlying enum types in MFBT; r=cjones
2012-08-05 12:11:24 +03:00
Nicholas Nethercote
d05b248e0f
Bug 647367 - Sequester jshash.{h,cpp} in js/jsd/ (attempt 2). r=luke.
...
--HG--
rename : js/src/jshash.cpp => js/jsd/jshash.cpp
rename : js/src/jshash.h => js/jsd/jshash.h
2012-07-18 17:38:10 -07:00
Sergey Glushchenko
970c894833
Bug 776429: Unify scattered M_PI definitions into mfbt/Constants.h r=dRdR
2012-08-06 13:32:11 -07:00
Mike Hommey
6173fa297f
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Benoit Jacob
2c1495e61f
Bug 768538 - CheckedInt: HasSignBit should return bool - r=Ms2ger
2012-07-08 11:44:22 -04:00
Benoit Jacob
033b7d4499
Bug 768538 - CheckedInt: code simplification; remove the separate operator/ implementation - r=Ms2ger
2012-07-08 11:25:24 -04:00
Benoit Jacob
32979f1189
Bug 768570 - Fix all the warnings in CheckedInt - r=jwalden
2012-07-05 10:13:31 -04:00
Benoit Jacob
6aada1fe80
Bug 768538 - 2/2 - Fix undefined behavior in the CheckedInt unit test - r=jwalden
2012-07-05 10:13:23 -04:00
Benoit Jacob
91d02dae9f
Bug 768538 - 1/2 - Fix undefined behavior in CheckedInt - r=jwalden
2012-07-05 10:13:13 -04:00
Jeff Walden
dfad117b73
Bug 766347 - Implement mozilla::IsConvertible to detect when a value of one type will convert to a value of another type. r=luke
...
--HG--
extra : rebase_source : d25c1b84dfc928a0bc4dcfb43e31b6035882849e
2012-06-19 13:55:23 -07:00
Jeff Walden
a268b163ad
Bug 766347 - Implement a mozilla::EnableIf template struct for SFINAE capabilities. r=luke
...
--HG--
extra : rebase_source : 06807195217a967142ab7d81ac8b120f2b0e02c7
2012-06-18 19:06:33 -07:00
Jeff Walden
4bea2ef35c
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
717ec330df
Bug 760995 - Move Scoped.h into the mozilla namespace. r=sparky
...
--HG--
extra : rebase_source : 534c787c834fc1d7174b51d8fb8f13ec339c0a58
2012-06-11 16:16:47 -07:00
Jeff Walden
bbe15a85b7
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
712c4f68c8
Backout 1c5a8d617bff (bug 765990), 617cb36ead59, b3067d05a76a (bug 760995), 79f9a61a1e43 (bug 426163) for bustage
2012-06-21 10:00:36 +01:00
Jeff Walden
45aa6ec729
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
ac77cd55ab
Bug 760995 - Move Scoped.h into the mozilla namespace. r=sparky
...
--HG--
extra : rebase_source : ea32c4240ea552c72ed16074c803927e638474dc
2012-06-11 16:16:47 -07:00
Jeff Walden
51e2957954
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
dd05414940
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
09e6c025d8
Bug 763000 - Remove MOZ_Assert. r=Ms2ger, r=terrence, r=ted
2012-06-07 14:41:11 -07:00
Jeff Walden
45accfa179
Fix a couple style nits missed during review. Followup to bug 616262, r=sparky
2012-06-14 17:55:11 -07:00
Mike Hommey
85ca2ebed8
Bug 616262 - Add mozilla/TypeTraits.h with mozilla::Conditional and mozilla::IsBaseOf traits, similar to resp. C++11 std::conditional and std::is_base_of. r=Waldo
2012-06-14 08:20:47 +02:00
Jeff Walden
7b44ac5b41
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
03b6751e09
Style patrol to make everything conform to mfbt/STYLE. No bug, r=sparky
2012-06-03 20:36:43 -07:00
Jeff Walden
6400135f0b
Remove some extraneous includes and a function, all added in bug 714260. They were initially necessary when that patch was written, but they became vestigial during rebasing prior to landing, and this disuse wasn't noticed til now. r=lumpy
2012-04-19 16:36:31 -07:00
Justin Lebar
c75bf63164
Bug 758337 - Fix mistake in comment in mfbt/LinkedList.h. DONTBUILD
2012-06-01 10:32:14 -04:00
Ginn Chen
ab480327da
Bug 758494 Make double conversion built with Solaris Studio compiler r=jwalden
2012-06-01 17:49:33 +08:00
Benoit Jacob
74a0310077
Bug 758396 - Let MFBT LinkedList allow const - r=jlebar
2012-05-29 14:44:31 -04:00
Rafael Ávila de Espíndola
2b6dcbbad9
Bug 759208 - CheckedInt.h depends on undefined value of signed arithmetic. r=bjacob.
2012-05-29 12:48:26 -04:00
Mike Hommey
96de05d930
Bug 756965 - Allow mozilla::ThreadLocal to store integer types smaller than, or as large as, a pointer. r=Waldo
2012-05-22 08:43:55 +02:00
Mike Hommey
1c4217e2eb
Bug 750620 - Declare double conversion correctness for more architectures. r=nfroyd
2012-05-22 08:38:44 +02:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
f38cefa90e
Bug 753119 - Add ThreadLocal to mfbt - r=jwalden
...
... because nobody likes to use the NSPR TLS support.
2012-05-09 16:54:33 -04:00
Benoit Jacob
e3c11e3704
Bug 732875 - Further CheckedInt tweaks - r=Ms2ger,jwalden
2012-05-17 10:07:24 -04:00
Dão Gottwald
c17d4c6865
Backed out changeset 45ef0e7b2426
2012-05-17 16:48:06 +02:00
Benoit Jacob
5bd712711d
Bug 732875 - Further CheckedInt tweaks - r=Ms2ger,jwalden
2012-05-17 10:07:24 -04:00
Benoit Jacob
17b0e7f92d
Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Ed Morley
8b2dbc3dca
Backout 345ae68f15f4, b3b40121ac8d, 0d18b7a246d7, 9dbb6064ab58, dee9d7fa8eb6, 63eec6bfa948, 323c6be7cfe8 & f4aac7523a48 (bug 732875) for compilation failures
2012-05-14 21:05:24 +01:00
Benoit Jacob
8fbc0a34da
Bug 732875 - 8/8 - move CheckedInt to MFBT, enable unit tests in mfbt/tests - r=jwalden
...
--HG--
rename : xpcom/ds/CheckedInt.h => mfbt/CheckedInt.h
2012-05-14 15:50:20 -04:00
Christian Holler
5c46c7d23b
Bug 751195 - Mark GC function unsafe for AddressSanitizer, r=billm
2012-05-05 02:08:32 -04:00
Chris Peterson
b4f8876bfd
Bug 751766 - Remove unused function MOZ_Crash. r=glandium
...
--HG--
extra : rebase_source : 8bf953755dab1c5429cd6b7e2ca5452ebab8dd8f
2012-05-03 16:43:51 -07:00
Christian Holler
36904cccbc
Bug 751412 - Add missing buffer null-termination in CreateDecimalRepresentation, r=njn
2012-05-04 10:40:54 -04:00
Luke Wagner
f80844498f
Bug 650353 - Implement Compartment-Per-Global in XPConnect. r=mrbkap
2012-05-03 09:10:12 +02:00
Jacek Caban
4fbada08f4
Bug 745762 - double-conversion.h fails to compile on mingw r=jwalden
2012-04-27 11:40:05 +02:00
Jeff Walden
18b2aec6c5
Bug 714260 - Implement FloatingPoint.h to consolidate all IEEE-754 floating point operations in a single location. r=dmandelin for the js bits, r=Ms2ger for mfbt and the core bits
2012-01-23 03:43:16 -08:00
Nathan Froyd
70e094f740
Bug 614188 - Part 3: build double-conversion as a part of MFBT; r=Waldo
2012-04-09 12:05:11 -04:00
Nathan Froyd
1093f61696
Bug 614188 - Part 2: import double-conversion sources; r=Waldo
2012-03-19 12:22:32 -04:00
Nathan Froyd
642fbdb0ad
Bug 614188 - Part 1: setup mfbt/double-conversion; r=Waldo
2012-03-19 12:21:05 -04:00
Bas Schouten
67b6c99e9f
Bug 719776 - Part 2: Make MOZ_CRASH and MOZ_ASSERT expand inline. r=waldo
2012-04-12 02:03:07 +02:00
Phil Ringnalda
4348c0ace3
Back out 4b82f26f8593:2fcf9cbedd48 (bug 743393, bug 719776) for bustage
2012-04-11 09:06:40 -07:00
Bas Schouten
57bf03284d
Bug 719776 - Part 2: Inline MOZ_Assert and MOZ_Crash. r=waldo
2012-04-11 16:55:31 +02:00
Chris Peterson
e8f1923660
Bug 743306 - Part 2: On Android, segfault in MOZ_Crash because SIGABRT is handled asynchronously. r=glandium
...
--HG--
extra : rebase_source : 46233676f73a5b8040f92ec251fe0ae3ecca9934
2012-04-09 12:45:25 -07:00
Chris Peterson
43693c5ef7
Bug 743306 - Part 1: On Android, log MOZ_Assert messages to logcat because stderr is directed to /dev/null. r=glandium
...
--HG--
extra : rebase_source : 1dda421f84116784539d6ca65fb1d9092506b0bd
2012-04-09 12:45:17 -07:00
David Rajchenbach-Teller
caa4b9c436
Bug 718938 - Add RAII helper to mfbt. r=waldo,luke,cjones
2012-04-06 11:16:33 +02:00
Jeff Walden
9cf1352230
Document ternary expression style and the else-after-return prohibition. No bug, rs=luke over IRC, DONTBUILD because this is modifying docs but touching no code
...
--HG--
extra : rebase_source : 0c11adc6052878710300eea87520345ca7e9143f
2012-03-29 16:03:32 -07:00
Jeff Walden
c8b7a2946c
Document macro naming style and struct naming style in C-compatible code, where C++ namespaces can't be used to avoid name collisions. No bug, r=luke over IRC, DONTBUILD because this is modifying docs but touching no code
2012-03-28 15:42:40 -07:00
Justin Lebar
ef6b90af61
Bug 732820 - Part 1: Add clear() to LinkedList. r=waldo
...
--HG--
rename : js/src/vm/ArgumentsObject.cpp => js/src/jsfun.cpp
extra : rebase_source : 1cf48cb8f9764d4299b6f3320fd65b9bc3407de6
2012-03-15 16:30:41 -04:00
Jacek Caban
e125125c10
Bug 735704 - RotateLeft32 conflicts with winnt.h macro r=Waldo
2012-03-15 13:43:28 +01:00
Boris Zbarsky
2330298c86
Bug 705877 part 1. Rename mayContain on BloomFilter to mightContain. r=dbaron
2012-03-12 22:54:12 -05:00
Phil Ringnalda
b1d1a41987
Back out 83a33626d965:6e9330f5a9bd (bug 732667 and bug 705877) for Windows build bustage
2012-03-12 22:12:41 -07:00
Boris Zbarsky
267257c7b4
Bug 705877 part 1. Rename mayContain on BloomFilter to mightContain. r=dbaron
2012-03-12 22:54:12 -05:00
Justin Lebar
48a5094f13
Bug 729940 - Part 1: Add hash function utilities to mfbt. r=waldo
...
--HG--
extra : rebase_source : 05f5c9f5c1e99e5bca012c57502a965423aeb10e
2012-03-12 18:53:18 -04:00
Justin Lebar
0ef78736cc
Back out bug 731419 and bug 732820 due to orange.
...
Backs out changesets 55e63a03ccad 45d2f5e2fe31 f78900832562 6184b50776fc 35d8045aeadd 42e887fec034.
2012-03-09 18:32:42 -05:00
Jeff Walden
ce0d5b7543
Line-wrap the mfbt style docs at 80 characters. The docs are more easily edited the other way, but MXR doesn't auto-wrap long lines, and readability trumps writability here. No bug, r=sparky, DONTBUILD
...
--HG--
extra : rebase_source : 5cae4c24e03546d1cf5f3e43457b44904ccf2b5f
2012-03-09 15:02:51 -08:00
Justin Lebar
90ea50750e
Bug 732820 - Part 1: Add clear() to LinkedList. r=waldo
2012-03-09 17:21:01 -05:00
Jeff Walden
79c6905951
Bug 732321 - Document mfbt style, rather than relying on reviewers to consistently remember and enforce every little bit of it. r=cjones, DONTBUILD because this is adding docs but touching no code
2012-03-01 20:47:30 -08:00
Ed Morley
d27ab2302c
Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions
2012-03-05 15:22:28 +00:00
Justin Lebar
358403f646
Bug 729940 - Part 1: Add hash function utilities to mfbt. r=waldo
2012-03-04 15:58:04 -05:00
Justin Lebar
8f94cc1764
Back out bug 729940 (a108aee:d75775d) due to 32-bit red.
2012-03-04 14:20:34 -05:00
Justin Lebar
0b5e896c72
Bug 729940 - Part 1: Add hash function utilities to mfbt. r=waldo
2012-03-04 13:49:41 -05:00
Justin Lebar
b5b0120395
Bug 729952 - Part 3: Add missing #include. r=me
2012-03-02 17:46:09 -05:00
Justin Lebar
b3d50b3dad
Bug 729952 - Part 1: Add a better hash function to mfbt. r=waldo
2012-03-02 17:18:21 -05:00
Jacek Caban
e8c05a5cb1
Bug 728178 - js.exe fails to link on on mingw (missing MOZ_Crash) r=glandium
2012-03-02 11:27:29 +01:00
Boris Zbarsky
342c77c9bc
Bug 730100 followup. Add missing include guards. Assumed r=ms2ger
2012-03-02 00:20:32 -05:00
Justin Lebar
bfc79c98e2
Bug 731789 - Followup, s/StdInt/StandardInteger in BloomFilter.h. r=me
2012-02-29 23:40:16 -05:00
Justin Lebar
b682bbe4a5
Bug 731789 - Rename mfbt/StdInt.h to mfbt/StandardInteger.h, so stdint types work from cpp files inside mfbt. r=waldo
2012-02-29 22:56:43 -05:00
Boris Zbarsky
6812bfe7e0
Bug 730100. Add a Bloom filter implementation. r=waldo
2012-02-29 21:40:47 -05:00
Rafael Ávila de Espíndola
ef7237dbbe
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
8997b8eee9
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
David Rajchenbach-Teller
ce16822653
Bug 727435 - Implementing MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT. r=Waldo
...
--HG--
extra : rebase_source : 4fcf555106b06b0080d2986102f6d84d3ae8fd4d
2012-02-16 01:17:02 +01:00
Jeff Walden
2250838b4b
Bug 727141 - Uglify the include of <stdint.h> to support building on case-insensitive file systems. rs=khuey over IRC
...
--HG--
extra : rebase_source : 34ea2bea8ecb6bbaf039d50ec728233d524fc015
2012-02-14 12:18:21 -08:00
Robert O'Callahan
9371edde80
Bug 726894. Add a copy constructor to DebugOnly so it can be used in more situations. r=cjones
2012-02-14 17:39:20 +13:00
Mike Hommey
526bd939af
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
Phil Ringnalda
9f50602120
Back out 7f81109133b5 (bug 725221), 135721f3720b (bug 726891), aef4ead175b4 (bug 726894) for orange
2012-02-13 22:31:22 -08:00
Robert O'Callahan
aa9fa6a0c3
Bug 726894. Add a copy constructor to DebugOnly so it can be used in more situations. r=cjones
2012-02-14 17:39:20 +13:00
Mike Hommey
c893472974
Backout 8eef38643ceb (bug 717540) and 78941a969e20 (bug 725230) because of windows debug bustage
2012-02-13 16:35:13 +01:00
Mike Hommey
ac9a4a0719
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
Justin Lebar
1ebe60bb6c
Bug 722581 - Update comments in mfbt/LinkedList.h. r=waldo
2012-02-04 21:49:10 -05:00
Justin Lebar
fc0cb053c5
Bug 715405 - Add a type-safe linked list class. r=waldo
...
--HG--
extra : rebase_source : c1a829b9c1264c6b07a10b1ff7a8d0a64e3125f7
2012-01-26 15:54:03 -05:00
Jeff Walden
4211ac4084
Bug 720759 - Export mfbt's guard object classes to avoid warnings using them in exported APIs. r=Ms2ger
...
--HG--
extra : rebase_source : d1de7a9549e1fe0d047b3882ebca711fc0a47b94
2012-01-24 09:22:47 -08:00
Ed Morley
4e5bc81eba
Backout 01a5ce645a8b, 6e849614a79f & bd75f26eee25 (bug 720759) for win debug build failures
2012-01-24 21:06:59 +00:00
Jeff Walden
89c5f4105d
Bug 720759 - Export mfbt's guard object classes to avoid warnings using them in exported APIs. r=Ms2ger
2012-01-24 09:22:47 -08:00
Ms2ger
ff3cbfab47
Bug 716236 - Fix indentation in GuardObjects.h and allow its inclusion into C files; r=Waldo
2012-01-15 09:13:07 +01:00
Jeff Walden
35274f19bf
Bug 716112 - Add an optional second argument to MOZ_ASSERT to allow explanations to accompany assertions, if desired. r=cjones
...
--HG--
extra : rebase_source : a6be7ef89c91a58df489057ca4ea67791b6881a0
2012-01-06 15:51:27 -06:00
Michael Kohler
51e15f5815
Bug 711818 - MOZILLA_GUARD_OBJECT_NOTIFIER* should use a MOZ_ prefix to follow MFBT style
2012-01-10 00:29:30 -05:00
Jeff Walden
157c2375be
Add introductory comments to the files in mfbt/ that aren't copied from elsewhere, to facilitate easier MXR directory skimming. No bug, r=lumpy
...
--HG--
extra : rebase_source : dd834c64e625a0184b64d13e2a2e6fd8960ca832
2011-12-28 10:48:54 -06:00
Jeff Walden
a1ca217e9e
Bug 713560 - Make MOZ_STATIC_ASSERT, when it expands to C++11 static_cast(), pass its reason argument along to static_cast in more compilers. r=typo-fix
2011-12-27 12:09:41 -06:00
Jeff Walden
9110dc5c3b
Bug 712129 - Implement MOZ_STATIC_ASSERT and MOZ_STATIC_ASSERT_IF. r=luke
2011-12-19 16:58:30 -05:00
Jeff Walden
68263d19c9
Bug 712129 - Add more assertion macro flavors to mfbt, and make the JS engine use mfbt's implementations where appropriate. r=cjones
...
--HG--
extra : rebase_source : 6b94db05e74b18a3938a28cbc0f520eb4e01fbb0
2011-12-19 15:54:12 -05:00
Jeff Walden
6dab78f2df
Bug 712129 - Move MOZ*INLINE macros from Util.h into Attributes.h, where they make more sense. r=luke
...
--HG--
extra : rebase_source : f62a21c8833c9d5eb7351b18ba14f14d4286b3c0
2011-12-19 14:45:52 -05:00
Jeff Walden
8fcbabe9e8
Bug 712129 - Move assertion code into a new mfbt/Assertions.h header. r=luke
...
--HG--
extra : rebase_source : 6587b6aa4180493c48b0663bc627543020a21deb
2011-12-19 14:28:35 -05:00
Jeff Walden
19508c446b
Bug 711775 - Implement MOZ_NORETURN to encapsulate this-function-doesn't-return semantics. r=cjones
...
--HG--
extra : rebase_source : d56f3ef47e11c42b5fe6a442e13fd6202208914f
2011-12-17 16:45:29 -05:00
Jeff Walden
70d2068d20
Bug 711683 - Use Clang's feature-detection macros, not its version number, for feature testing. r=cjones
...
--HG--
extra : rebase_source : fdf8e0bff705410a85bd4560f08b226321632bb1
2011-12-17 16:45:29 -05:00
Jeff Walden
7f153524ef
Bug 711672 - Break mfbt's dependency on jstypes.h by moving various API macros out of JS and into mfbt. r=luke, r=cjones
...
--HG--
extra : rebase_source : f18993e1eec1a5e5bcdb9cd97fa7d7c6ad261e2c
2011-12-13 14:26:58 -05:00
Jeff Walden
87d3f92e61
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 22:54:10 -05:00
Jeff Walden
91683ae3e3
Bug 704313 - Implement mozilla/StdInt.h. r=cjones
...
--HG--
extra : rebase_source : b221134fdfbde13a37a6ef621bba3ca183a46101
2011-11-22 17:42:57 -08:00
Jeff Walden
976b51d411
Bug 704313 - Import, unmodified, the Microsoft-compatible <stdint.h> implementation from the 'msinttypes' Google Code project, r26, into mfbt. r=gerv for license compatibility and the addition to toolkit/content/license.html, r=cjones for the code
...
--HG--
extra : rebase_source : 9e1105b916d15023a91ffcca8b26445bc1bd930d
2011-11-22 16:40:45 -08:00
Jeff Walden
560700472e
Followup to bug 704127 - s/MOZ_HAVE CXX11_FINAL/MOZ_HAVE_CXX11_FINAL/ in one case (thanks to Stuart Cook in m.d.platform for noticing this, I have *no* *idea* how he managed it, Luke had to have me point it out to even see the change in the diff), and actually define it for -std=c++0x GCC (a mistaken omission originally). rs=luke
...
--HG--
extra : rebase_source : 2187e3b4a133c898cf6b1fcb3dd92226c70e2082
2011-12-01 18:21:27 -08:00
Jeff Walden
19f38bafe5
Bug 704127 - Implement MOZ_FINAL as a modifier for classes and virtual member functions. r=cjones
...
--HG--
extra : rebase_source : d95a3b3e726f810f299314358ba8c5e23557698e
2011-11-20 22:21:16 -08:00
Jeff Walden
4f3f8250ea
Bug 704127 - Move C++ attribute support out of mozilla/Types.h and into mozilla/Attributes.h so that it can be used by code that's not yet compatible with the full mfbt experience. r=cjones
...
--HG--
extra : rebase_source : 7b653358a73f222c055f5139e33ca470475f88c9
2011-11-20 12:22:51 -08:00
Joe Drew
d877844dd5
Bug 702799 - Don't modify a RefPtr when using the implicit conversion to TemporaryRef. r=cjones
2011-11-21 16:42:07 -05:00
Ed Morley
1c87228e23
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-16 11:02:43 +00:00
Ms2ger
d2ea6246bf
Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey
2011-11-16 08:50:19 +01:00
Jeff Walden
efbbb37472
Change preprocessor-directive indentation to be two-space, not one-space. rs=cjones in bug 702437
2011-11-15 22:26:55 -08:00
Jeff Walden
e15cf47cfd
Bug 702437 - Implement MOZ_OVERRIDE to encapsulate support for the contextual override keyword on virtual member functions. r=cjones
2011-11-14 10:31:46 -08:00
Jeff Walden
a99c1d985f
Very slight comment tweak for the compile-to-nothing case for defining MOZ_DELETE. No bug, r=sparky
...
--HG--
extra : rebase_source : 3a5f731e646e1367403ae7c8ae7715e74faa2b8b
2011-11-10 21:49:51 -08:00
Jeff Walden
aff0b00199
Bug 701183 - Make MOZ_DELETE use deleted function syntax in gcc when it's possible to do so without causing a warning. r=cjones
...
--HG--
extra : rebase_source : 6f452c9cc9dcdc772991ee1056975bf7b0b4bb5b
2011-11-10 14:19:28 -08:00
Jeff Walden
c54dfe474f
Bug 700910 - Implement MOZ_DELETE to encapsulate C++11 = delete syntax. r=cjones
...
--HG--
extra : rebase_source : 0fc4bc154923c84fd91e52be99fdac78f7c6dbc4
2011-11-08 19:19:44 -08:00
Jeff Walden
b7753477cf
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
...
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Chris Leary
0d6adcf81f
Bug 693928: Fix random orange from LifoAlloc debug memset. (r=luke)
...
--HG--
extra : rebase_source : 314ebeb6364ad0bb45baa6b7d7f09b9603e47b27
2011-10-12 15:32:40 -07:00
Jeff Walden
eb2cb918a4
Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail
2011-10-12 12:21:53 -07:00
Jeff Walden
77ebbde4ab
Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
...
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Justin Lebar
16aac235d7
Bug 689433 - Followup. Remove unused MOZ_STATIC_ASSERT macro. r=roc
2011-10-06 17:51:24 -04:00
Justin Lebar
83e3821db7
Bug 689433 - Align nsAutoTArray<E> to E's natural alignment. r=roc
...
--HG--
extra : rebase_source : f7062f251f6905a58145ed6d94680f076dabbef7
2011-10-05 09:11:17 -04:00
Chris Leary
14bc4cf54d
Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
...
--HG--
rename : js/src/jsarena.h => js/src/ds/LifoAlloc.h
extra : rebase_source : 098bf9561114f82363ebd0862213acf952709257
2011-09-22 13:22:30 -07:00
Terrence Cole
8dfb9edbc9
Bug: 685041 - convert #ifdef DEBUG vars in jsgc.cpp to DebugOnly; r=luke
...
This adds operation++ and operator-- to DebugOnly in support of the two uses
cleaned up here.
2011-09-07 11:32:35 -07:00
Terrence Cole
9e219e8b92
Bug 646597 - Remove unneeded #ifdef DEBUG: use DebugOnly instead; r=bhackett
...
Assignment to a DebugOnly variable results in a call to either the empty
'operator =' or to an empty implicit 1-arg constructor and empty copy
constructor when in non-debug mode. Either of these get inlined and
eliminated as dead code above -00, so there is no benefit to skipping
this assignment for non-debug builds.
2011-09-04 13:58:00 +01:00
Chris Leary
31076ac1d6
Merge mozilla-central and tracemonkey.
2011-06-27 11:07:22 -07:00
Chris Leary
0780a149be
Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke)
2011-06-24 14:22:30 -07:00
Chris Leary
7922cf2289
Merge mozilla central and tracemonkey.
2011-06-20 16:49:20 -07:00
Ehsan Akhgari
14a79314b1
Bug 662971 - Silence the clang warnings issued because of alignment requirements increase when compiling mfbt/Util.h; r=Waldo
...
--HG--
extra : rebase_source : a2bb6f588674602993c6603abda01487b72b6923
2011-06-17 15:59:47 -04:00
Bas Schouten
c58b307338
Followup to bug 661973: Fix bug with COM outparams and add convenience operators. r=cjones
2011-06-21 21:44:00 -07:00
Jeff Walden
077f90dc40
Add a RangedPtr constructor accepting an array as a shorthand for RangedPtr(arr, N). rs=luke
2011-06-07 13:25:36 -07:00
Jeff Walden
87ccff3aa5
Bug 662001 - Move js::RangeCheckedPointer<T> to mozilla::RangedPtr<T>, make it no longer implicitly convert to T*, and adjust users accordingly. r=cjones
2011-06-06 11:02:34 -07:00
David Mandelin
2299c54162
Bug 656282: Remove redundant declaration that causes an MSVC warning, r=luke
...
--HG--
extra : rebase_source : 42c6e9594f36fd7320bdea90fdb01c955bf07f4d
2011-05-16 16:17:19 -07:00
Jeff Walden
ac8938a32d
Bug 656059 - Add operator-> to mozilla::DebugOnly<T> so it can store pointers. r=cjones
...
--HG--
extra : rebase_source : 3d7aeec93f1ae1e5bbd4b03c30216e70fe15eb6a
2011-05-10 14:56:49 -07:00
Chris Jones
b4c5b0ece8
Bug 661973: Implement mozilla::RefCounted, RefPtr, TemporaryRef, OutParamRef, and byRef. r=Bas,luke sr=roc
2011-06-16 20:40:20 -07:00
Daniel Holbert
582e13726b
Bug 654346: Fix C++-style comments in mfbt headers included by .c files, to fix build warnings. r=cjones comment-only=DONTBUILD
2011-05-03 10:24:01 -07:00
Chris Jones
a61c26e2c0
Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke
2011-04-28 17:48:52 -05:00
Chris Jones
ea1f5e599c
Bug 647011: Sprinkle some DebugOnly in js/src. r=luke
2011-04-20 18:27:30 -05:00
Chris Jones
9520dec9fe
Bug 577899, part 2: Add a DebugOnly helper to mfbt, which only contains a value in debug builds. r=luke
2011-03-31 20:46:35 -05:00
Chris Jones
02c5d89688
Bug 577899, part 1: Add mfbt, to contain code shared between SpiderMonkey and Gecko. r=luke,ted sr=brendan,bsmedberg,roc
2011-03-31 20:46:35 -05:00