DescriptionCleanups needed for this-scoping in arrow functions
Remove Variable::IsValidReference(), and the Variable::is_valid_ref_
member: This was "false" only for "this", and for internal variables.
For the first, VariableProxy::is_this() can be used for the check
instead; and for internal variables, it is guaranteed they they will
not be written to (because the V8 code does not do it, and they are
not accessible from JavaScript).
The "bool is_this" parameter of VariableProxy() constructor is
changed to use Variable::Kind. This will allow to later on adding
a parameter to create unresolved variables of any kind, which in
turn will be used to make references to "this" initially unresolved,
and use the existing variable resolution mechanics for "this".
BUG=v8:2700
LOG=N
Committed: https://crrev.com/00844d466be3d809b95d439fdd14566601780458
Cr-Commit-Position: refs/heads/master@{#27404}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Removed codegen bits and Scope::has_this_declaration() #
Messages
Total messages: 13 (4 generated)
|