• 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
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...