• oleksandr.chekhovskyi's avatar
    Parser: Report use counts once per feature · 2f6be682
    oleksandr.chekhovskyi authored
    Reporting use counts by invoking a callback once per occurrence has
    a large overhead cost in certain situations, for example when it needs
    to be dispatched to a different thread (which is the case for Web Workers).
    
    Parsing large scripts can produce a lot of occurrences (strict/sloppy mode
    once per function).
    
    Chromium (the only known user of UseCounters so far) does not actually care
    about number of occurrences, but simply whether they happened at least once.
    This commit changes behavior to report features at most once, which dramatically
    improves performance for impacted use cases, and should not affect the only
    known real world usage.
    
    R=littledan@chromium.org
    BUG=chromium:614775
    
    Review-Url: https://codereview.chromium.org/2062203002
    Cr-Commit-Position: refs/heads/master@{#36979}
    2f6be682
Name
Last commit
Last update
..
OWNERS Loading commit data...
expression-classifier.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
parameter-initializer-rewriter.cc Loading commit data...
parameter-initializer-rewriter.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparse-data-format.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...