| Index: src/variables.h
|
| diff --git a/src/variables.h b/src/variables.h
|
| index 0cb50c87e985580c1fd1c7fc5ea9b3fde63f4206..384a8859545045ac502c5f80cc7a8229ddd81d75 100644
|
| --- a/src/variables.h
|
| +++ b/src/variables.h
|
| @@ -20,7 +20,7 @@
|
|
|
| class Variable: public ZoneObject {
|
| public:
|
| - enum Kind { NORMAL, FUNCTION, CLASS, THIS, ARGUMENTS };
|
| + enum Kind { NORMAL, FUNCTION, CLASS, THIS, NEW_TARGET, ARGUMENTS };
|
|
|
| enum Location {
|
| // Before and during variable allocation, a variable whose location is
|
| @@ -103,6 +103,7 @@
|
| bool is_function() const { return kind_ == FUNCTION; }
|
| bool is_class() const { return kind_ == CLASS; }
|
| bool is_this() const { return kind_ == THIS; }
|
| + bool is_new_target() const { return kind_ == NEW_TARGET; }
|
| bool is_arguments() const { return kind_ == ARGUMENTS; }
|
|
|
| ClassVariable* AsClassVariable() {
|
|
|