gecko-dev/xpcom
Nathan Froyd 84951ded23 Bug 1386476 - avoid unnecessary checks in nsTArray::AppendElement; r=erahm
nsTArray::AppendElement{,s} uses an IncrementLength method to adjust the
length of the array after appending elements.  There are checks in
IncrementLength to ensure that we're not incrementing the length stored
in the static empty header object; these checks are necessary in cases
such as appending a zero-length array to another zero-length array.

But we do not need this check when we're calling AppendElement: we know
the header is obviously not the empty header, because we increased the
length of the array by one for the newly appended element.  Incrementing
the length can therefore be inlined, saving ~90K of codesize on x86-64
Linux.
2017-08-02 19:21:23 -04:00
..
base Bug 1384819 (part 1) - Split MozStackWalk(). r=glandium. 2017-07-27 12:46:47 +10:00
build Bug 1384819 (part 1) - Split MozStackWalk(). r=glandium. 2017-07-27 12:46:47 +10:00
components Bug 1368994 - Remove !compMgr warning. r=froydnj 2017-07-26 14:00:10 -07:00
doc
ds Bug 1386476 - avoid unnecessary checks in nsTArray::AppendElement; r=erahm 2017-08-02 19:21:23 -04:00
glue Bug 1382099 - Remove MOZ_WIDGET_GONK from xpcom/. r=erahm. 2017-07-21 10:45:39 +10:00
idl-parser Bug 1366869 - Make DISPATCH_NORMAL be the default flags argument for nsIEventTarget::Dispatch (r=froydnj) 2017-05-23 12:05:43 -07:00
io Bug 1376496 - Part 4 - FileDescriptorFile.cpp coding style fixes. r=jimm 2017-07-17 23:48:42 -07:00
libxpt/xptcall
reflect Bug 1279218 - Remove Applet tag; r=bz 2017-07-10 16:00:30 -07:00
rust Bug 1381080 patch 1 - Add ClassFlags::NULL_TERMINATED to strings that require null-termination. r=erahm 2017-07-20 15:46:58 -07:00
string Bug 1384834 (part 4) - Improve comments for Adopt() and getter_Copies(). r=erahm. 2017-08-01 06:06:36 +10:00
system Bug 1377538: Store blocklistState and blocklistURL in the add-ons DB. r=rhelmer 2017-07-03 18:05:52 -07:00
tests Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm. 2017-07-24 19:23:52 +02:00
threads Bug 1384819 (part 1) - Split MozStackWalk(). r=glandium. 2017-07-27 12:46:47 +10:00
typelib Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
windbgdlg
xpidl
moz.build
xpcom-config.h.in Bug 1326145 - Remove HAVE_CPP_AMBIGUITY_RESOLVING_USING. r=froydnj 2016-12-29 18:05:20 +11:00
xpcom-private.h.in