Nicholas Nethercote
6855b78fbf
Bug 1201135 - Rename pldhash.{h,cpp} to PLDHashTable.{h,cpp}. r=mccr8.
2015-09-15 20:49:53 -07:00
Chris Peterson
bcf08cea4c
Bug 1204403 - Fix -Wshadow warnings in xpcom. r=mccr8
2015-09-07 23:56:16 -07:00
Kan-Ru Chen
fa6350cc5c
Bug 1123237 - Part 10. Expose SwapElements from nsBaseHashtable. r=nfroyd
2015-09-16 10:31:13 +08:00
Nicholas Nethercote
ac3ae5e6c1
Bug 1121760 (part 6) - Move all remaining PL_DHash*() functions into PLDHashTable. r=poiru.
2015-09-14 14:23:47 -07:00
Nicholas Nethercote
93fcb9414c
Bug 1121760 (part 5) - Remove PL_DHashMarkTableImmutable(). r=poiru.
2015-09-14 14:23:27 -07:00
Nicholas Nethercote
2d94391edd
Bug 1121760 (part 4) - Remove PL_DHashTableRawRemove(). r=poiru.
2015-09-14 14:23:26 -07:00
Nicholas Nethercote
5c91fcd1e6
Bug 1121760 (part 3) - Remove PL_DHashTableRemove(). r=poiru.
2015-09-14 14:23:24 -07:00
Nicholas Nethercote
538c6626e9
Bug 1121760 (part 2) - Remove PL_DHashTableAdd(). r=poiru.
2015-09-14 14:23:12 -07:00
Nicholas Nethercote
ba83ffc5ec
Bug 1121760 (part 1) - Remove PL_DHashTableSearch(). r=poiru.
2015-05-21 00:34:25 -07:00
Andrew McCreight
2e4be7587d
Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
...
This leaves alone the AppendElement methods.
2015-09-15 15:30:44 -07:00
Michael Layzell
f20336e5e1
Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan
2015-09-12 16:53:33 -04:00
Michael Layzell
2e2e2bf5ed
Bug 1156802 - Part 2: Remove all explicit move constructors, r=ehsan
2015-09-12 12:34:45 -04:00
Nicholas Nethercote
980d9f7a73
Bug 1202526 (part 1) - Add PLDHashTable::RemoveEntry(). r=froydnj.
...
This patch also consolidates the shrink handling so it's now entirely within
ShrinkIfAppropriate().
2015-09-07 19:20:12 -07:00
Wes Kocher
9bcea3c39d
Backed out changeset f5b2a11c64c9 (bug 1201271) for bustage
2015-09-09 15:56:21 -07:00
Andrew McCreight
e0986ef5bc
Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
...
This leaves alone the AppendElement methods.
2015-09-09 15:39:10 -07:00
Phil Ringnalda
40ec3df000
Backed out 10 changesets (bug 1123237) for hazard build failures and Windows test failures
...
CLOSED TREE
Backed out changeset 9c26b3b787f8 (bug 1123237)
Backed out changeset 1fcec0dc93d5 (bug 1123237)
Backed out changeset 390033ceebb6 (bug 1123237)
Backed out changeset e8a1845876d6 (bug 1123237)
Backed out changeset 714ec40715fa (bug 1123237)
Backed out changeset 5ed952e011c3 (bug 1123237)
Backed out changeset c785df6c0cdf (bug 1123237)
Backed out changeset d69e2d195a24 (bug 1123237)
Backed out changeset 1f328807da1d (bug 1123237)
Backed out changeset a1546857dce9 (bug 1123237)
2015-09-05 13:49:39 -07:00
Kan-Ru Chen
8837c4ba31
Bug 1123237 - Part 10. Expose SwapElements from nsBaseHashtable. r=nfroyd
2015-09-06 00:13:26 +08:00
Eric Rahm
c1e9f7bc68
Bug 1199400 - Part 1: Use CheckedInt when growing nsDeque capacity. r=froydnj
2015-09-03 13:33:46 -07:00
Eric Rahm
74584556ba
Bug 1199400 - Part 0: Remove unused nsDequeIterator. r=froydnj
2015-09-04 15:04:58 -07:00
Andrew McCreight
8f1c29e597
Backed out changeset 351d5f864f9e for not compiling.
2015-09-04 09:52:24 -07:00
Andrew McCreight
d400b16911
Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
...
This leaves alone the AppendElement methods.
2015-09-04 09:45:44 -07:00
Nicholas Nethercote
69d088e45f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Seth Fowler
fd5949a83a
Bug 1181907 (Part 1) - Make it possible to use nsGenericHashKey with free functions. r=heycam
2015-08-26 18:19:31 -07:00
Chris Peterson
cd0fd3466a
Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium
2015-08-25 09:14:38 -07:00
Chris Peterson
cc68dfd296
Bug 1197563 - Polyfill __func__ for MSVC 2013 and earlier. r=froydnj
2015-08-20 23:39:18 -07:00
Miko Mynttinen
5415160f70
Bug 1197316 - Remove PR_snprintf calls in xpcom/. r=froydnj
2015-08-22 17:57:52 -07:00
Xidorn Quan
42ee4a8599
Bug 1196050 - Replace NSCAP_Zero usage with decltype(nullptr). r=froydnj
2015-08-20 10:30:10 +10:00
Aryeh Gregor
977959ed20
Bug 1010756 - Helpful errors for using nsCOMPtr on non-XPCOM types; r=froydnj
2015-08-12 18:43:10 +03:00
Nicholas Nethercote
b68592bb63
Bug 1181443 (part 3, attempt 2) - Remove nsTHashtable::EnumerateEntries(), which is no longer used. r=froydnj.
2015-07-23 02:37:26 -07:00
Nathan Froyd
2d7616c186
Bug 1192230 - clean up reference-counting in xpcom/; r=erahm
2015-07-01 12:27:43 -04:00
Birunthan Mohanathas
ebeccde38d
Bug 1185763 - Part 4: Swap elements if possible in r-value version of nsTArray::AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
a44818609c
Bug 1185763 - Part 3: Rename nsTArray::MoveElementsFrom to AppendElements. r=froydnj
2015-08-11 08:29:46 -07:00
Birunthan Mohanathas
dd7b872b07
Bug 1185763 - Part 2: Remove non-rvalue version of nsTArray::MoveElementsFrom. r=froydnj
2015-08-11 08:29:46 -07:00
Nicholas Nethercote
1b756bbd42
Backout 04a196339ca4 (bug 1181443, part 3) so that bug 1182961's patches can be backed out.
2015-08-06 16:28:13 -07:00
Nicholas Nethercote
a49a3010c8
Bug 1181443 (part 3) - Remove nsTHashtable::EnumerateEntries(), which is no longer used. r=froydnj.
2015-07-23 02:37:26 -07:00
Aryeh Gregor
3713e55caa
Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
2015-08-05 15:28:27 +03:00
Nicholas Nethercote
953689e82d
Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
2015-07-30 21:19:57 -07:00
Nicholas Nethercote
4a526ace27
Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().
2015-07-29 01:50:52 -07:00
Nicholas Hurley
ea6d236bfa
Bug 1127618 - make push caches work in e10s. r=mcmanus r=froydnj IGNORE IDL
2015-07-31 13:50:08 -07:00
Nicholas Nethercote
8bc2be4de1
Bug 1189156 (part 1) - Don't use enumeration style for PLDHashTable::SizeOf{In,Ex}cludingThis(). r=froydnj.
...
After this change, we have PLDHashTable::ShallowSizeOf{In,Ex}cludingThis(),
which don't do anything to measure children. (They can be combined with
iteration to measure children.)
This patch also removes the PL_DHashTableSizeOf{In,Ex}cludingThis() functions.
They're not necessary because the methods can be used instead.
Finally, the patch deliberately converts some SizeOfExcludingThis() calls to
SizeOfIncludingThis(). These are all done on heap pointers so this change is
valid.
2015-07-29 22:28:20 -07:00
Nicholas Nethercote
242308999c
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -07:00
Aidin Gharibnavaz
31046168cb
Bug 108603 - Remove NS_IMPL_QUERY_INTERFACE_INHERITED0. r=mccr8, r=froydnj
2015-07-24 12:13:00 -04:00
Bobby Holley
59c4d9cf6c
Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Bobby Holley
ec207ee3d4
Bug 1188696 - Remove the XPCOM dependencies in nsRefPtr.h. r=froydnj
2015-07-29 10:44:58 -07:00
Nathan Froyd
9fa2417770
Bug 1179787 - part 2 - add template logic for smart pointer template arguments in NS_NewRunnableMethod*; r=botond
2015-07-02 11:17:49 -04:00
Nathan Froyd
fd3db03ce7
Bug 1179787 - part 1 - forward StorensRefPtrPassByPtr's constructor argument; r=botond
...
StorensRefPtrPassByPtr is currently used for storing reference-counted
types passed as T* template arguments to NS_NewRunnableMethodWith*.
We'd also like to use it to store nsRefPtr<T> template arguments. While
it could be used in its current form, it'd be better for its constructor
to support forwarding, so that something like:
NS_NewRunnableMethodWithArg<nsRefPtr<T>>(..., nsRefPtr<T>(local));
doesn't cause unnecessary reference counting.
2015-07-02 11:05:52 -04:00
Ryan VanderMeulen
3abd642d14
Bug 1180017 - Fix up the badly-horked backout and re-land.
...
CLOSED TREE
2015-07-29 12:31:47 -04:00
Jim Blandy
631796ff1f
Bug 1180017 - Give GCCellPtr is<T> and to<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
2015-07-03 15:06:23 -07:00
Carsten "Tomcat" Book
1ff25152c8
Backed out changeset 465793bc6fcf (bug 1180017) for suspicion of causing bug 1188799
2015-07-29 15:27:12 +02:00
Jacek Caban
7e144224ba
Bug 1188431 - Fixed length argument handling in char16ptr_t variant of NS_ConvertUTF16toUTF8 constructor. r=nfroyd
2015-07-29 12:26:40 +02:00