| Index: src/variables.h
|
| diff --git a/src/variables.h b/src/variables.h
|
| index 1adeb1f0f417cc0d8bcdf6a19a2f688f1195e477..4696e0543d30a0d3315495de19ec7fd1ae5d3e62 100644
|
| --- a/src/variables.h
|
| +++ b/src/variables.h
|
| @@ -18,7 +18,7 @@ namespace internal {
|
|
|
| class Variable: public ZoneObject {
|
| public:
|
| - enum Kind { NORMAL, THIS, NEW_TARGET, ARGUMENTS };
|
| + enum Kind { NORMAL, FUNCTION, THIS, NEW_TARGET, ARGUMENTS };
|
|
|
| enum Location {
|
| // Before and during variable allocation, a variable whose location is
|
| @@ -98,6 +98,7 @@ class Variable: public ZoneObject {
|
| return initialization_flag_ == kNeedsInitialization;
|
| }
|
|
|
| + bool is_function() const { return kind_ == FUNCTION; }
|
| bool is_this() const { return kind_ == THIS; }
|
| bool is_new_target() const { return kind_ == NEW_TARGET; }
|
| bool is_arguments() const { return kind_ == ARGUMENTS; }
|
|
|