• bakkot's avatar
    Refactor object/class literal property name parsing · 8d5a267b
    bakkot authored
    This patch arranges that property names are parsed in a single pass,
    reporting the name as well as the type of the property, instead of
    parsing qualifiers like 'static' or 'get' initially as names and then
    re-parsing. This change is easier to reason about, very slightly (4%)
    faster in some cases (although slower in other, less common ones, though
    this slowdown will be fixed in an upcoming patch), and is a prerequisite
    for separating the parsing of object and class literal properties, which
    will become increasingly important as ECMAScript adds more class features.
    
    This is a reland of https://codereview.chromium.org/2278153004/,
    which fixes the issue causing the revert and adds more tests.
    
    Review-Url: https://codereview.chromium.org/2300503002
    Cr-Commit-Position: refs/heads/master@{#39056}
    8d5a267b
Name
Last commit
Last update
..
OWNERS Loading commit data...
duplicate-finder.cc Loading commit data...
duplicate-finder.h 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...
parse-info.cc Loading commit data...
parse-info.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...