Eric Rahm
c6756f1edb
Bug 1380154 - Part 1: Add the Chromium DAFSA generator. r=njn
...
This imports Chromium's `make_dafsa.py` script [1]. It takes in a gperf
formatted file (note: gperf is *not* required) and converts that to a compact
binary representation of the string data in the form of a deterministic
acyclic finite state automaton (DAFSA) [2].
The only change made to the script was to make it handle the arguments our
file generation script passes in to the `main` function.
It also imports the logic for traversing the DAFSA [3] almost verbatim in
`Dafsa.cpp`. A thin wrapper was added so that we can reuse the DAFSA structure
for multiple tables.
The only change made to the original logic was to swap in mozilla style
assertions and rename the not found constant from `kNotFound` to
`Dafsa::kKeyNotFound` in order to avoid a collision with `kNotFound` defined in
our nsString code.
[1] https://chromium.googlesource.com/chromium/src/net/+/6ba04a90565e236b5a420c3a5039718183ad35bd/tools/dafsa/make_dafsa.py
[2] https://en.wikipedia.org/wiki/Deterministic_acyclic_finite_state_automaton
[3] https://chromium.googlesource.com/chromium/chromium/+/a2a90a35aa5b7178e219668bde5889595c710451/net/base/registry_controlled_domains/registry_controlled_domain.cc#72
MozReview-Commit-ID: Eion9POHZm5
2017-07-17 16:09:42 -07:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Nathan Froyd
4480b909a8
Bug 1219246 - use UniquePtr instead of nsAuto*Ptr in xpcom/; r=erahm
2015-10-31 13:47:14 -04:00
Nathan Froyd
2b0d06b6b8
Backout 5649b6b8cec3 (bug 1219246) for Linux xpcshell bustage
2015-10-31 13:34:06 -04:00
Nathan Froyd
b5fd8ae0ce
Bug 1219246 - use UniquePtr instead of nsAutoArrayPtr in xpcom/; r=erahm
2015-10-28 09:50:29 -04:00
Nicholas Nethercote
830cf484e9
Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
...
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)
2015-09-09 21:07:07 -07:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Andrew McCreight
00f75cda98
Bug 1151541, part 2 - Fix mode lines in xpcom/. r=froydnj
2015-04-09 10:25:05 -07:00
Ehsan Akhgari
02d4859a55
Bug 1117211 - Move the XPCOM gtests temporarily placed in xpcom/glue/tests/gtest into xpcom/test/gtest now that it exists; r=froydnj
2015-01-05 11:30:36 -05:00