Reviewers: wingo (OoO until 4 aug), Diego Pino, vjaquez, Dmitry Lomov
(chromium), marja (ooo until 18th of Aug), rossberg, Michael Starzinger,
Description:
Track 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=
Please review this at https://codereview.chromium.org/422923004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+148, -2 lines):
M src/ast-value-factory.h
M src/preparser.h
M src/scopes.h
M src/scopes.cc
M test/cctest/test-parsing.cc
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.