Commit Graph

4 Commits

Author SHA1 Message Date
Nathan Froyd
e4a1cd2df1 Bug 1530369 - part 3 - do less copying in generateTokens; r=ckerschb
We don't need to copy `dirAndSrcs` when appending it to `outTokens`, and
we can reasonably retain the storage we've built up in `dirSrcs`, so we
don't continually reallocate it.
2019-02-25 13:58:53 -05:00
Nathan Froyd
ef665544c6 Bug 1530369 - part 2 - bulk-append characters in generateNextToken; r=ckerschb
Instead of appending each individual charater, we can delay the append
until after the loop, which saves on function calls.
2019-02-25 13:58:53 -05:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Christoph Kerschbaumer
920a60992c Bug 1458504 - Move Tokenizer into it's own file so it can be shared by the CSP Parser and the Feature Policy Parser. r=jkt 2018-05-02 16:36:51 +02:00