• wingo@igalia.com's avatar
    Track usage of "this" and "arguments" in Scope · 0841f724
    wingo@igalia.com authored
    This adds flags in Scope to track wheter a Scope uses "this" and,
    "arguments". The information is exposed via Scope::uses_this(),
    and Scope::uses_arguments(), respectively. Flags for tracking
    usage on any inner scope uses are available as well via
    Scope::inner_uses_this(), and Scope::inner_uses_arguments().
    
    Knowing whether scopes use "this" and "arguments" will be handy
    to generate the code needed to capture their values when generating
    the code for arrow functions.
    
    BUG=v8:2700
    LOG=
    R=rossberg@chromium.org
    
    Review URL: https://codereview.chromium.org/422923004
    
    Patch from Adrian Perez de Castro <aperez@igalia.com>.
    
    git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24663 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    0841f724
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
tools Loading commit data...
.DEPS.git Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE 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...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...