Luke Wagner
c2517ac7d8
Bug 1030446 - Build a list of code ranges and use this instead of CallSite for describing functions (r=dougc)
...
--HG--
extra : rebase_source : 842f64b989e6be4a8e530c219ffe6eec6701c49f
2014-06-25 17:34:23 -05:00
Jeff Walden
2c5ed1828b
Bug 953296 - Introduce an EBO-performing Pair class to mfbt. r=jcranmer
...
--HG--
extra : rebase_source : a5d4ad52736a66656aaf3947b31ce8087b859491
2014-06-09 08:49:18 -07:00
Jeff Walden
297cdb7279
Bug 1030515 - Make IsSigned and IsUnsigned usable with user-defined types. r=froydnj
...
--HG--
extra : rebase_source : f74d5c0b9f05a56c4d56aba1ebbdb944a3464b30
2014-06-25 18:47:04 -07:00
Jeff Walden
f4c09e1ea5
Bug 1029132 - Add mozilla::IsInRange method to write out in-range tests more simply. r=froydnj
...
--HG--
extra : rebase_source : b57c74750e4db2bc5ffe4655069f3597fab5a6b2
2014-06-23 14:14:26 -07:00
Marty Rosenberg
786df24145
Bug 991153: Make the types for sets of registers a per-type quantity (r=jandem)
2014-06-25 12:54:34 -04:00
Birunthan Mohanathas
82bb121ffc
Bug 836073 - Add MOZ_MSVC_VERSION_AT_LEAST() macro to mfbt/Compiler.h. r=Waldo
2014-06-20 09:19:35 -07:00
Jan de Mooij
f6f4979801
Bug 1027528 part 7 - Make Range mStart/mEnd const, fix operator[]. r=Waldo
2014-06-20 17:39:42 +02:00
Jeff Walden
770045e23f
Bug 953296 - Add IsLvalueReference and IsVoid. r=jcranmer
...
--HG--
extra : rebase_source : 53def7d45901da43ffbcfef3adbbea3a3e6bb329
2014-01-09 10:09:14 -06:00
Jeff Walden
b706ddaf73
Bug 953296 - Implement mozilla::RemoveExtent. r=jcranmer
...
--HG--
extra : rebase_source : 97d4f055fc80074265bd5c8b1b0a565d8e994e7b
2014-06-10 12:58:17 -07:00
Nicholas Nethercote
9439ff268e
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
Ehsan Akhgari
29433bf8d1
Bug 1026718 - Expand MOZ_DECLARE_REFCOUNTED_TYPENAME unconditioanlly in order to make it available outside of libxul as well; r=Waldo
2014-06-18 20:11:21 -04:00
Jed Davis
10b28157d6
Bug 1011350 - Use TaggedAnonymousMemory to distinguish our various mmap call sites. r=njn
...
We can probably get more granular information than this, given that we
can re-tag memory after the initial mapping, or tag subregions of an
individual mmap() call differently. But this is a start.
2014-06-17 17:55:00 +02:00
Jed Davis
5d990656e6
Bug 1011350 - Add mfbt support for PR_SET_VMA_ANON_NAME. r=njn r=froydnj
...
This is a Linux kernel feature present in newer Android and B2G devices
which allows attaching an arbitrary name to an anonymous memory regions,
thus tagging it for the purposes of procfs mapping lists and causing it
to be reported separately from adjacent regions with different names.
2014-06-17 17:54:00 +02:00
Ehsan Akhgari
c2cbd699a1
Bug 1025900 - #include intrin.h directly in Atomics.h instead of declaring functions manually from it; r=froydnj
...
This is basically more of bug 1022049.
--HG--
extra : rebase_source : 39cf2745d47d90ba1684c2c26a38f9781a4d179e
2014-06-16 18:19:49 -04:00
Chris Peterson
969f9037ad
Bug 1024318 - Fix warnings in mfbt/tests/ and mark as FAIL_ON_WARNINGS. r=Waldo
2014-06-14 12:47:01 -07:00
Ehsan Akhgari
11ef71dec3
Bug 1025143 - Fix a compilation error in TestTypedEnum.cpp with clang-cl; r=bjacob
...
This makes the code more correct since if we don't have constexpr
support in the compiler, the CastableTypedEnumResult type would
actually not be a literal type, so we should not assert that here.
2014-06-13 15:22:16 -04:00
Jan de Mooij
d3b4e134f1
Bug 1023778 part 3 - Make AtomizeChars and js_NewStringCopyN accept Latin1 chars. r=luke
2014-06-13 20:51:05 +02:00
Jan de Mooij
f6e79b4014
Bug 1024688 - Add a MaybeOneOf class to MFBT. r=luke
2014-06-13 14:26:01 +02:00
Ehsan Akhgari
b65d47a0ad
Bug 1023449 - Try to check for MSVC before clang so that we live in the clang-cl world when building with that compiler; r=froydnj
...
--HG--
extra : rebase_source : dbfcf19afa0aa030d4fc769f29ede4c957af669d
2014-06-10 16:33:39 -04:00
Jeff Muizelaar
4c4e0b3541
Bug 1022049. Switch to <intrin.h>. r=nfroyd
...
Instead of declaring these ourselves just use intrin.h
This has the advantage of allowing them to work with clang-cl
--HG--
extra : rebase_source : b78c756edb5dcdf1fd9127ad5e1a7ae183e72e3c
2014-06-09 17:26:55 -04:00
Ehsan Akhgari
ac9615fa0d
Bug 1021290 - More Atomics.h build fixes for clang-cl. r=froydnj
...
This is basically more of bug 932454
2014-06-09 14:49:34 -04:00
Ehsan Akhgari
8b30e40485
Bug 1013662 - Fix bad implicit conversion constructors in MFBT; r=froydnj,Waldo
2014-06-06 23:17:06 -04:00
Ehsan Akhgari
fcbd7ebc45
Bug 1022050 - Disable the SEH block used in TestPoisonArea.cpp on clang-cl until it grows SEH support; r=froydnj
2014-06-06 23:11:58 -04:00
Nathan Froyd
002c131055
Bug 1020118 - fix atomic add/sub for pointer types on Win64; r=jcranmer
2014-06-04 15:19:51 -04:00
Ms2ger
9f8242b9b4
Bug 1020165 - Remove empty makefiles; r=mshal
2014-06-06 10:06:24 +02:00
Chris Peterson
163d828c29
Bug 945029 - Fix up Android's broken [u]intptr_t inttype macros. r=Waldo
2014-05-12 22:27:14 -07:00
Wes Kocher
8ae9f3fb4a
Backed out changeset 34f371b1024b (bug 1021290) for Windows build bustage on a CLOSED TREE
2014-06-05 17:35:47 -07:00
Jeff Muizelaar
c50b5c14aa
Bug 1021290. More Atomics.h build fixes for clang-cl. r=froydnj
...
This is basically more of bug 932454
--HG--
extra : rebase_source : 0f9a5d43164efb6940d17e406f41691cb3d26435
2014-06-05 19:48:52 -04:00
Benoit Jacob
64ad3662d5
Bug 1018239 - Make WebGLContext::GetExtensionString fool-proof and remove a dangerous EnumeratedArrayConstructor - r=jgilbert
2014-05-30 16:21:23 -04:00
Brian Smith
47e2bb46f2
Bug 1010634, Part 2: Fix compiler warnings in MFBT and XPCOM, r=ehsan
...
--HG--
extra : rebase_source : 8839297479ce2ade7a7e6cb5099178e799a0e516
2014-05-29 20:18:29 -07:00
Nicholas Nethercote
7e98d1c248
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
Nathan Froyd
51186e84a0
Bug 1010317 - remove unnecessary includes from RollingMean.h; r=Ms2ger
2014-05-14 11:46:29 -04:00
Dan Gohman
73faa4dc74
Bug 1012971 - Fix compiler warnings in mfbt r=nbp
2014-05-22 11:15:06 -07:00
Ehsan Akhgari
80e1f6f0e4
Fix a typo in a comment, no bug, DONTBUILD
2014-05-22 09:28:06 -04:00
Ehsan Akhgari
4ca5ac62f7
Bug 1013662 - Part 1: Add MOZ_IMPLICIT to Attributes.h; r=froydnj
...
--HG--
extra : rebase_source : 4654de918e6f73f40c34a19cfd1b457ba2c734f1
2014-05-21 21:31:29 -04:00
Dan Gohman
7c3190bd62
Bug 1012964 - IonMonkey: Optimize LiveInterval::addRange. r=bhackett
2014-05-20 13:36:40 -07:00
Nicholas Nethercote
d503a6c9e3
Bug 983538 (part 2) - Update mfbt/STYLE. r=froydnj.
...
--HG--
extra : rebase_source : dac8a5683794cc838966afaf8c037aa466d44410
2014-03-13 22:42:59 -07:00
Nicholas Nethercote
bdeeee5ff9
Bug 983538 (part 1) - Convert mfbt/SplayTree.h to Mozilla style. r=froydnj.
...
--HG--
extra : rebase_source : 9143ee56f94e7c6e0b1e1a70c4dc26c90c69d84a
2014-03-13 22:35:45 -07:00
Botond Ballo
b1b72d1714
Bug 961289 - Add a ToString utility to MFBT. r=froydnj
...
--HG--
extra : source : 26bd00a6d34fa88b8a16862e5b96a6717386f9f7
2014-05-07 14:54:45 -04:00
Matt Woodrow
5aa1f5d7fe
Bug 950312 - Part 4: Create active layers for nsDisplayMixBlendMode and nsDisplayBlendContainer if the layer manager supports all contained blend mode. r=roc
2014-05-09 21:49:27 +12:00
Matt Woodrow
898541f214
Bug 950312 - Part 3: Add Layers API to see what blend modes are supported. r=roc
2014-05-09 21:48:32 +12:00
Chris Peterson
e1a6042c4b
Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in mfbt. r=Waldo
2014-04-13 23:01:08 -07:00
Chris Peterson
a611a1764f
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
6e74be8757
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
88fbe13b7d
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
Ehsan Akhgari
7257ee5010
Bug 1004564 - Move AtomicRefCounted to mozilla::external and outlaw it in Gecko code; r=froydnj
2014-05-01 14:33:20 -04:00
Benoit Jacob
cf6decae49
Bug 920292 - Check the types of assert conditions - r=froydnj
2014-04-30 22:39:13 -04:00
Birunthan Mohanathas
5e01b2cee4
Bug 1001987
- Make MOZ_STATIC_ASSERT_VALID_ARG_COUNT compatible with ICC. r=Waldo
2014-04-28 07:48:00 +02:00
Benoit Jacob
05d01a79c8
Bug 987290 - Work around a GCC 4.6.3 ICE - no review, bustage fix
2014-04-28 12:27:13 -04:00
Benoit Jacob
a8a9cf90c0
Bug 987290 - Follow-up: fix TestTypedEnum to avoid requiring behavior that relies on explicit conversions, when they are not available. Fixes the build on MSVC 2012 - no review, bustage fix
2014-04-27 22:46:40 -04:00
Benoit Jacob
888ca078bf
Bug 987290 - Allow using MFBT Typed Enums as bitwise flags - r=Waldo
2014-04-25 22:34:04 -04:00
Blair McBride
af6be312f8
Backed out 2 changesets (bug 987290). r=sheriff
...
Backed out changeset 4ad1f662f521 (bug 987290)
Backed out changeset 080ff1f86465 (bug 987290)
2014-04-27 20:41:58 +12:00
Benoit Jacob
645e93ca92
Bug 987290 - Allow using MFBT Typed Enums as bitwise flags - r=Waldo
2014-04-25 22:34:04 -04:00
Benoit Jacob
9827caf183
Bug 987253 - Add MOZ_EXPLICIT_CONVERSION - r=Waldo
2014-04-25 22:34:04 -04:00
Benoit Jacob
586211fff8
Bug 989123 - Add EnumeratedArray class to MFBT for plain static arrays indexed by a typed enum - r=Waldo
2014-04-25 22:34:03 -04:00
Birunthan Mohanathas
1bfbc15260
Bug 989460 - Follow-up: Fix MOZ_STATIC_ASSERT_VALID_ARG_COUNT when 51st arg is e.g. `true != 1`. r=froydnj
2014-04-25 10:00:00 -04:00
Birunthan Mohanathas
772debb89d
Bug 989460 - Part 2: Add MOZ_FOR_EACH macro. r=Waldo
2014-04-24 10:49:00 +02:00
Birunthan Mohanathas
accb4d62ef
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
Benoit Jacob
7c2d5b3529
Bug 807607 - Make MFBT tests use MOZ_RELEASE_ASSERT instead of MOZ_ASSERT to ensure test coverage in non-DEBUG - r=Waldo
...
find mfbt/tests/ -type f | xargs sed -i 's/MOZ_ASSERT/MOZ_RELEASE_ASSERT/g'
2014-04-24 17:06:50 -04:00
Luke Wagner
8d264161c9
Bug 998507 - add some assertions to BinarySearch (r=me)
2014-04-22 13:53:37 -05:00
Luke Wagner
73f0ab2246
Bug 998507 - add BinarySearch (r=sunfish)
...
--HG--
extra : rebase_source : 6ba04575a5dd8a886235e6799bc790c7a3afc64f
2014-04-15 21:30:26 -05:00
Chris Peterson
773014c88a
Bug 984073 - Fix warning in double-conversion and suppress warnings in lz4. r=Waldo
2014-03-15 23:23:28 -07:00
Benoit Jacob
006b370dc5
Bug 987274 - Add IntegerTypeTraits.h to MFBT for additional integer traits and helpers that don't have type_traits equivalents - r=Waldo
2014-04-01 09:38:42 -04:00
Ehsan Akhgari
5da1cb00cf
Add a comment to WeakPtr.h which explicitly calls out the fact that it's not thread-safe, no bug, DONTBUILD
2014-03-28 00:12:30 -04:00
Ehsan Akhgari
186680d83a
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Jim Blandy
4138c776b2
Bug 944176: Implement move construction and move assignment for mozilla::Scoped derivatives. r=waldo
2014-03-27 09:52:48 -07:00
Jim Blandy
7a81916776
Bug 944176: In mozilla::Scoped, don't gratuitously repeat template arguments within the class template itself. r=waldo
2014-03-27 09:52:43 -07:00
David Major
926fd8dee8
Bug 982310 - Hack around problems linking std::_Debug_message; r=ehsan
...
--HG--
extra : amend_source : 2e0f6f26823ee5fcce16dfaf8791ae57d8ac62cb
2014-03-21 12:53:00 -07:00
Ehsan Akhgari
fceee9b5aa
Bug 985878 - Make AtomicRefCounted thread safe; r=khuey
2014-03-25 09:02:26 -04:00
Nathan Froyd
76b72b02a3
Bug 986023 - remove unused freeList member from SplayTree; r=Ms2ger
2014-03-20 12:19:15 -04:00
Trevor Saunders
786059e915
bug 899319 - use __is_base_of() on gcc / clang / msvc r=froydnj
2014-03-06 23:34:20 -05:00
Xidorn Quan
9cbc0d3fe9
Bug 980698 - Rename shadowing parameters. r=Waldo
2014-03-12 08:42:39 -04:00
Dan Gohman
1bb01da898
Bug 978397 - Fix the implementation of CountPopulation_32 on Windows. r=nbp
2014-03-11 08:09:55 -04:00
Jacek Caban
e7727dcf6d
Bug 928351 - Fixed -Wshadow warning.
2014-03-10 14:32:24 +01:00
Ehsan Akhgari
8cd0c0f21d
Bug 935778 - Part 3: Add trace-refcount logging for AddRef and Release in RefCounted objects; r=dbaron
2014-03-09 14:36:36 -04:00
Robert O'Callahan
fd813ddaf4
Bug 955888. Part 1: Add ChaosMode.h base functionality. r=waldo
...
--HG--
extra : rebase_source : e892a951a3d3951e70e00f0b51046b744140eeee
2014-03-03 18:12:17 +13:00
Ulrich Weigand
9a60ac53fd
Bug 976648 - mfbt endian config for powerpc64le-linux support. r=froydnj
2014-02-28 09:57:24 -05:00
Ehsan Akhgari
369cf847da
Bug 979067 - Stop exporting the guard object classes; r=froydnj
2014-03-05 07:50:55 -05:00
Ehsan Akhgari
17f4a32d8b
Bug 976896 - Port STL_FLAGS to moz.build; r=mshal
2014-03-04 19:39:06 -05:00
Chris Peterson
f29b18d0c0
Bug 808679 - Add asserts for Vector::Range and Vector srcbeg <= srcend. r=Waldo
2014-02-11 22:42:39 -08:00
Masatoshi Kimura
fdd301c353
Bug 972761 - Move WindowsVersion.h to MFBT. r=froydnj
...
--HG--
rename : xpcom/base/WindowsVersion.h => mfbt/WindowsVersion.h
2014-02-28 07:58:47 +09:00
Benjamin Bouvier
cab8750482
Bug 939843: Tests for mfbt::Floats; r=waldo
...
--HG--
extra : rebase_source : a6515f7d4e82e020fd7686f14932855873078813
2014-02-27 16:23:08 +01:00
Benjamin Bouvier
1ce0aa6d4a
Bug 939843: Unify FloatingPoint's code for Double and Float; r=waldo
...
--HG--
extra : rebase_source : 2f7956d497d534af8931939a38a29ad27695a3fc
2014-01-30 15:54:46 +01:00
Marcin Juszkiewicz
4d2df383d2
Bug 962488 - Update double-conversion for proper AArch64 support. r=froydnj
...
Fix imported from upstream repository:
https://code.google.com/p/double-conversion/source/detail?r=4e24bb31bcc76d6d218f3056b4c24a109d367561
2014-02-26 13:43:16 -05:00
Ehsan Akhgari
9c823473c2
Bug 935778 - Part 0.7: Emit the correct type name from FilterNodeLightingSoftware; r=jrmuizel, parts r=dbaron
2014-02-26 10:13:48 -05:00
Ehsan Akhgari
677b8c872c
Bug 976247 - Remove a useless static keyword from mozilla::detail::DEAD; r=froydnj
2014-02-24 21:08:51 -05:00
Ehsan Akhgari
0db909c03c
Backed out changeset f74c9326b89c (bug 976247) because I landed the wrong patch :(
2014-02-24 21:07:37 -05:00
Ehsan Akhgari
c102d49715
Bug 976247 - Remove a useless static keyword from mozilla::detail::DEAD; r=froydnj
...
--HG--
extra : rebase_source : e73444ec000f1e867651d39cf2aa6beaf88bf4f3
2014-02-24 19:37:34 -05:00
Ehsan Akhgari
e1b60f2947
Bug 935778 - Part 0.6: Add support for MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME and use it in moz2d
...
X-Git-Commit-ID: bc256ac44cbba52b04f8f0390965632ec4507608
2014-02-24 08:23:37 -05:00
Ehsan Akhgari
e4ed013f53
Bug 935778 - Part 1.1: Re-add the refcount assertions for AddRef(), and make the assertions for Release() use a signed integer
2014-02-22 11:23:03 -05:00
Ehsan Akhgari
a8a0206da1
Bug 935778 - Part 1: Add RefCountType, a type compatible with nsrefcnt, to MFBT; r=dbaron,froydnj
2014-02-21 14:45:50 -05:00
Ehsan Akhgari
497c5f3692
Bug 935778 - Part 0.5: Add two more MOZ_DECLARE_REFCOUNTED_TYPENAME to TestWeakPtr.cpp
2014-02-21 09:45:05 -05:00
Ehsan Akhgari
5704b555e2
Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
2014-02-20 21:33:49 -05:00
Birunthan Mohanathas
9b3486cdf4
Bug 963056 - Part 2: Make MOZ_ARRAY_LENGTH a typesafe compile-time constant on compilers without constexpr support. r=Waldo
2014-02-11 13:31:58 -05:00
Ehsan Akhgari
d91d200572
Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg
2014-02-10 17:57:01 -05:00
Nathan Froyd
b0a50e656f
No bug - fix a comment in Move.h; irc-rs=Waldo DONTBUILD because comment fixes can't break anything...right?
2014-02-07 08:08:08 -05:00
Viktor Stanchev
529b872af2
Bug 965837 - Add bool support to mozilla::Atomic. r=froydnj
2014-02-06 14:57:30 -05:00
Wes Kocher
01f9f30e72
Backed out changeset ec696ad6ff10 (bug 963056) for build bustage on a CLOSED TREE
2014-02-05 16:19:06 -08:00
Birunthan Mohanathas
a8d0f13846
Bug 963056 - Make MOZ_ARRAY_LENGTH a typesafe compile-time constant on compilers without constexpr support. r=Waldo
2014-02-05 17:46:05 -05:00
Kartikaya Gupta
a6ffc9d1a7
Bug 948984 - Add functions to fuzzily compare float numbers. r=bjacob, r=Waldo
2014-02-05 17:04:42 -05:00