DescriptionTrack usage of "this" and "arguments" in Scope
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=
Patch Set 1 #Patch Set 2 : Rebased #
Total comments: 1
Patch Set 3 : Compare pointer directly with AstValueFactory::arguments_string() #Patch Set 4 : Rebase and fix parser instantiation after r23600 #
Total comments: 8
Patch Set 5 : Do not propagate inner_uses_$foo out of normal functions, more tests #
Total comments: 6
Patch Set 6 : Fix nits #
Messages
Total messages: 15 (0 generated)
|