Commit Graph

165 Commits

Author SHA1 Message Date
Ryan VanderMeulen
ef4314a212 Backed out changeset 37bee149c935 (bug 968520) for checktest failures. 2015-06-30 15:47:18 -04:00
Birunthan Mohanathas
97d4c2d5ec Bug 968520 - Add nsTArray::Assign. r=froydnj 2015-06-30 11:16:03 -07:00
Birunthan Mohanathas
979decd0bd Bug 968520 - Always require fallible argument with FallibleTArray calls. r=froydnj 2015-06-10 14:30:41 -07:00
Birunthan Mohanathas
67cae0519f Bug 968520 - Add more fallible variants of nsTArray::InsertElementsAt. r=froydnj 2015-06-09 17:27:31 -07:00
Birunthan Mohanathas
bd16fa84fb Bug 968520 - Add fallible variants of nsTArray::InsertElementSorted. r=froydnj 2015-06-08 13:39:57 -07:00
Birunthan Mohanathas
24c1c3301c Bug 968520 - Make nsTArray::InsertElementSorted support moves. r=froydnj 2015-06-08 13:39:53 -07:00
Birunthan Mohanathas
fc7d67e3ab Bug 1165729 - Remove unnecessary template declaration for fallible nsTArray::AppendElement. r=froydnj 2015-05-28 11:07:43 -07:00
Birunthan Mohanathas
635dd5e359 Bug 968520 - Add fallible variants of nsTArray::AppendElement. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
46c18590e5 Bug 968520 - Add fallible variants of nsTArray::AppendElements. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
60340a26de Bug 968520 - Add fallible variants of nsTArray::InsertElementAt. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
9db8881572 Bug 968520 - Add fallible variants of nsTArray::ReplaceElementsAt. r=froydnj 2015-05-18 13:50:35 -07:00
Birunthan Mohanathas
a0cd263bb6 Bug 968520 - Add fallible variant of nsTArray::SetLength. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
5b2cdf2452 Bug 968520 - Add fallible variant of nsTArray::EnsureLengthAtLeast. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
80264036e7 Bug 968520 - Add fallible variants of nsTArray::InsertElementsAt. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
eb009796ad Bug 968520 - Add fallible variant of nsTArray::SetCapacity. r=froydnj 2015-05-18 13:50:34 -07:00
Birunthan Mohanathas
c374c35f50 Bug 968520 - Explicitly specify the allocator for nsTArray_base functions. r=froydnj 2015-05-18 13:50:34 -07:00
Ehsan Akhgari
0915a15420 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher
5c13924153 Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE 2015-04-21 15:47:40 -07:00
Ehsan Akhgari
783d64de67 Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Botond Ballo
00450f64ac Bug 1156538 - Make nsTArray's move constructor implicit. r=froydnj 2015-04-20 18:42:56 -04:00
Aryeh Gregor
35b3914ed0 Bug 1153649 part 3 - More OwningNonNull improvements; r=bz 2015-04-19 15:28:50 +03:00
Mike Hommey
95e047925a Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Nicholas Nethercote
ee41df7dc2 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo. 2015-02-09 14:34:50 -08:00
Andrew McCreight
1ee96e7527 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
0a02b5d31c Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo. 2015-02-04 20:05:36 -08:00
Xidorn Quan
1aa524cf40 Bug 1127045 part 3 - Make nsTArray support reverse iterating. r=froydnj 2015-02-04 19:07:32 +11:00
Xidorn Quan
901d25c409 Bug 1126552 part 1 - Make nsTArray support range-based for loops. r=froydnj 2015-02-04 19:07:32 +11:00
Xidorn Quan
3f8ebecfd2 Bug 1126552 part 0 - Rename end to iend to avoid shadowing warnings. r=froydnj 2015-02-04 19:07:32 +11:00
Karl Tomlinson
3ed6850be8 bug 976927 support nsAutoTArray::operator=(const nsTArray&) r=froydnj
--HG--
extra : rebase_source : 9835cd5b05427611d5e490eee88602b2578dc0b8
2014-11-19 12:40:28 +13:00
Nicholas Nethercote
86815ec7c9 Bug 1048044 - Use exponential growth when growing an nsTArray. r=froydnj.
--HG--
extra : rebase_source : 7587eb25686f5273b9b77a8b38c6cc40ce5fc25b
2014-10-29 20:34:33 -07:00
Georg Fritzsche
34ab810003 Bug 1071489 - Make nsTArrays BinaryIndexOf use our unified binary search implementation. r=waldo 2014-09-23 13:15:53 +02:00
Georg Fritzsche
f6dc6b0d5b Bug 1067989 - Unify some more binary search uses. r=waldo 2014-09-17 15:46:24 +02:00
Ehsan Akhgari
e3de2d87d8 Bug 1065670 - Fix more bad implicit ctors in XPCOM; r=froydnj 2014-09-11 16:04:18 -04:00
Peter Van der Beken
11c21c38f7 Bug 982212: Part 4 - Remove explicit from the nsTArray-constructor that takes a r-value and add MoveElementsFrom taking a r-value. r=nfroyd.
--HG--
extra : rebase_source : bf6141fb301fcf19b619c9a4c88ce12f3521a12c
2014-09-02 14:20:14 +02:00
Peter Van der Beken
f31def0662 Bug 982212: Part 1a - Implement r-value reference support for nsTArray constructors and operator=, make part 1 work on gcc 4.4. r=nfroyd.
--HG--
extra : rebase_source : f188db9d463add8f4622ceef6f0b2332be4acca8
2014-09-03 18:33:03 +02:00
Kyle Huey
1599f83c38 Bug 982212: Part 1 - Implement r-value reference support for nsTArray constructors and operator=. r=nfroyd
--HG--
extra : rebase_source : 6119f0043a4af61beab08cdeb6ea072222cfac8b
2014-03-15 18:55:00 +01:00
Nicholas Nethercote
97292033d3 Bug 1058388 - Remove NS_COM_GLUE and IMETHOD_VISIBILITY. r=bsmedberg.
--HG--
extra : rebase_source : 250ec1323d4097101a8e0331a2bf7fab59f72b1d
2014-08-27 15:47:27 -07:00
Neil Rashbrook
3e418dac7a Bug 1054320 Improve the new nsTArray rvalue reference methods r=froydnj 2014-08-28 00:18:42 +01:00
Birunthan Mohanathas
c15b5fcb49 Bug 1046841 - Fix more style violations in previously touched .h files in xpcom/. r=froydnj 2014-08-25 12:17:24 -07:00
Trevor Saunders
8fc13f9fb5 [PATCH] bug 1049781 - add move ctor version of
From 43dccd4d360dd2e43182c2f39002dc14567f15c0 Mon Sep 17 00:00:00 2001
 nsTArray::InsertElementAt
---
 xpcom/glue/nsTArray.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
2014-08-06 14:49:37 -04:00
Jeff Muizelaar
72b1c0074e Bug 1044241. Discard tile back buffers that haven't been recently used. r=nical
Tracks tiles that have a back buffer with a nsExpirationTracker and discards
them after a while. This should help us claim back tile memory for tiles
that have stopped changing.

--HG--
extra : rebase_source : 2528de0a6fac08cb6f97ebd946d9f72a63b7d2b1
2014-07-31 23:25:37 -04:00
Jeff Muizelaar
a47aa00781 Bug 1039521 - nsTArray: Add an AppendElement take taking a r-value reference. r=froydnj
This lets us store UniquePtr's in nsTArrays

--HG--
extra : rebase_source : d7ea9ef710bd2451d0e2e9ba1aaefa9559315875
2014-07-18 09:43:42 -04:00
Birunthan Mohanathas
2bf30da924 Bug 1022456 - Fix modelines in xpcom/{base,glue,io,string,threads}/. r=froydnj 2014-06-30 08:39:45 -07:00
Birunthan Mohanathas
f00a91dc9a Bug 1022456 - Convert xpcom/glue/ to Gecko style. r=froydnj 2014-06-26 18:35:39 -07:00
Carsten "Tomcat" Book
7e9904e113 Backed out changeset 1b81b771aee6 (bug 1017418) 2014-06-02 11:26:12 +02:00
Nicholas Nethercote
4aecb3fdd1 Bug 1017418 (part 2) - Avoid more slop in nsTArray. r=froydnj. 2014-06-01 16:08:50 -07:00
Brian Smith
90eef2f5d9 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
Benoit Jacob
0746eb9600 Bug 852393 - Specialize nsAutoTArray<T, 0> to be an nsTArray - r=froydnj 2014-05-29 11:59:37 -04:00
David Major
d7356a07c7 Bug 1014288: Fix the OOM check in nsTArrayInfallibleAllocator::Realloc. r=bsmedberg 2014-05-28 14:45:15 +12:00
Ehsan Akhgari
42505dd3f6 Bug 1013664 - Fix bad implicit conversion constructors in XPCOM; r=froydnj
--HG--
extra : rebase_source : e3260a536292175cb1ad23a53dfe9e3f4bb8ff10
2014-05-21 21:33:28 -04:00