• Marja Hölttä's avatar
    [parser] Skipping inner funcs: Fix related to classes. · 3e12ed1f
    Marja Hölttä authored
    - Default constructor scopes won't need the scope data for deciding the scope
    allocation of variables inside them. Also, PreParser doesn't construct them. So
    they should be just skipped when applying the scope data.
    
    - PreParser needs to declare the class name + have a proper end position for
    the class scope.
    
    - This makes all mjsunit tests pass with --experimental-preparser-scope-analysis.
    
    - Also added several DCHECKs which were useful for debugging.
    
    BUG=v8:5516
    
    Change-Id: I5b3e6c60ed79efe25f33576a3547d707c700c6dd
    Reviewed-on: https://chromium-review.googlesource.com/503208
    Commit-Queue: Marja Hölttä <marja@chromium.org>
    Reviewed-by: 's avatarDaniel Vogelheim <vogelheim@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#45303}
    3e12ed1f
Name
Last commit
Last update
..
OWNERS 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...
parsing.cc Loading commit data...
parsing.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...
preparsed-scope-data.cc Loading commit data...
preparsed-scope-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...