Nicholas Nethercote
|
6548e9518e
|
Bug 1045920 (part 2) - Add mfbt/tests/TestRefPtr.cpp. r=froydnj.
|
2014-07-30 06:59:52 -07:00 |
|
Nicholas Nethercote
|
2a0942be41
|
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 |
|
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 |
|
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
|
7257ee5010
|
Bug 1004564 - Move AtomicRefCounted to mozilla::external and outlaw it in Gecko code; r=froydnj
|
2014-05-01 14:33:20 -04:00 |
|
Ehsan Akhgari
|
fceee9b5aa
|
Bug 985878 - Make AtomicRefCounted thread safe; r=khuey
|
2014-03-25 09:02:26 -04: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 |
|
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
|
5704b555e2
|
Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree
|
2014-02-20 21:33:49 -05:00 |
|
Seth Fowler
|
f9cdc752b1
|
Bug 912299 - Make RefCounted's refcount field mutable. r=waldo
|
2013-09-06 13:32:55 -07:00 |
|
Ehsan Akhgari
|
2824b29025
|
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
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 "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
|
2013-07-18 13:59:53 -04:00 |
|
Ms2ger
|
51f391870b
|
Bug 896341 - Update include guards and modelines in MFBT; r=Waldo
|
2013-07-24 09:41:39 +02:00 |
|
Mike Hommey
|
32f20f1c9f
|
Bug 864035 - Add an atomic RefCounted and WeakPtr implementation. r=Waldo
|
2013-05-18 09:52:53 +02:00 |
|
Ehsan Akhgari
|
16e22cc0af
|
Bug 863884 - Prepare WeakPtr to support a thread-safe variant; r=Waldo
|
2013-04-19 17:59:01 -04:00 |
|
Nicholas Cameron
|
c08ac751c5
|
Bug 837297; change RefCounted::dead to a define; r=waldo
|
2013-02-05 16:53:57 +13:00 |
|
Mike Hommey
|
66cbfc73f8
|
Bug 834769 - Change the "destroyed" state value for RefCounted. r=Waldo
|
2013-01-29 09:35:16 +01:00 |
|
Mike Hommey
|
17103848ed
|
Backout changeset bc2bbe9836c7 (bug 834769) for bustage.
|
2013-01-29 09:49:16 +01:00 |
|
Mike Hommey
|
19f90e4909
|
Bug 834769 - Change the "destroyed" state value for RefCounted. r=Waldo
|
2013-01-29 09:35:16 +01:00 |
|
Jeff Walden
|
986ff95100
|
Style patrol to make everything conform to mfbt/STYLE. No bug, r=sparky
|
2012-06-03 20:36:43 -07:00 |
|
Gervase Markham
|
82ff7027aa
|
Bug 716478 - update licence to MPL 2.
|
2012-05-21 12:12:37 +01:00 |
|
Jeff Walden
|
eaa4a32656
|
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
|
b00479bc34
|
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
|
05dcc6d231
|
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
|
d2d9341b8a
|
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
|
7b8b90225a
|
Bug 702799 - Don't modify a RefPtr when using the implicit conversion to TemporaryRef. r=cjones
|
2011-11-21 16:42:07 -05:00 |
|
Jeff Walden
|
0dc3caec01
|
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 |
|
Bas Schouten
|
4d1fc71a1e
|
Followup to bug 661973: Fix bug with COM outparams and add convenience operators. r=cjones
|
2011-06-21 21:44:00 -07:00 |
|
Chris Jones
|
d8c3a76fe7
|
Bug 661973: Implement mozilla::RefCounted, RefPtr, TemporaryRef, OutParamRef, and byRef. r=Bas,luke sr=roc
|
2011-06-16 20:40:20 -07:00 |
|