gecko-dev/toolkit
Francois Marier 3aa5d0aeda Bug 1362761 - Make WritePrefixes() more readable. r=dimi
Add assertions to highlight what the various data structures
should look like.

Also assert to ensure that mIndexPrefixes is always the same
length as mIndexDeltas and avoid writing the prefixes to disk
if that's not the case.

Do a single fallible allocation before we create the indexStarts
array instead of checking on each AppendElement() to simplify
the loop and emphasize the number of elements that the array
will receive (indexSize + 1). Remove the last element since we
don't actually end up writing it to disk.

MozReview-Commit-ID: HIg7ZmgaL7x

Differential Revision: https://phabricator.services.mozilla.com/D2063

--HG--
extra : moz-landing-system : lando
2018-07-11 09:10:31 +00:00
..
components Bug 1362761 - Make WritePrefixes() more readable. r=dimi 2018-07-11 09:10:31 +00:00
content Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-07-13 00:53:43 +03:00
crashreporter Bug 1460022: Part 10 - Update crash reporter to work with revised DLL interceptor interface; r=dmajor 2018-06-27 11:51:40 -06:00
forgetaboutsite Bug 1470109 - Move ServiceWorkerCleanUp.jsm into toolkit/components/cleardata, r=johannh 2018-06-21 16:50:10 +02:00
library Merge inbound to mozilla-central. a=merge 2018-07-10 12:45:13 +03:00
locales Merge inbound to mozilla-central. a=merge 2018-07-04 00:56:24 +03:00
modules Bug 1475276 - Remove some no more necessary usage of promiseItemGuid. r=lina 2018-07-12 21:38:21 +00:00
mozapps Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE 2018-07-12 21:22:32 +03:00
pluginproblem Bug 1456625 - Remove replacement XBL binding (Backout cb51f3bada90) r=Felipe 2018-05-24 18:23:48 +08:00
profile Bug 1472750 - Convert simple "listbox" instances to "richlistbox". r=bgrins 2018-07-09 10:38:42 +01:00
system Backed out changeset a7a1006e2f52 (bug 356831) for braking marionette on win asan on a CLOSED TREE 2018-07-10 18:42:01 +03:00
themes Backed out changeset 953772c799a6 (bug 1470870) for causing bug 1474631 2018-07-11 15:46:39 +02:00
xre Bug 1471532 - Support Windows in ASan Nightly Reporter builds. r=froydnj 2018-06-27 11:19:00 +02:00
.eslintrc.js
moz.build Backed out changeset a7a1006e2f52 (bug 356831) for braking marionette on win asan on a CLOSED TREE 2018-07-10 18:42:01 +03:00
moz.configure Bug 1473436 - Disable elfhack on local builds. r=chmanchester 2018-07-05 09:23:56 +09:00
nss.configure Bug 1446809 - Remove some b2g leftover in the build r=glandium 2018-03-20 10:46:23 +01:00
toolkit.mozbuild Bug 833098: Part 1 - Remove dead code in xpfe directory viewer. r=Mossop 2018-04-28 21:28:03 -07:00