| Index: src/globals.h
|
| diff --git a/src/globals.h b/src/globals.h
|
| index 0e30a9468890cbca262bb992a4e5fddf2bba0fa2..0ce365ba1efc3b1eb9bbce73b606b39bf1ee7de3 100644
|
| --- a/src/globals.h
|
| +++ b/src/globals.h
|
| @@ -935,6 +935,8 @@ enum FunctionKind {
|
| kInObjectLiteral = 1 << 7,
|
| kDefaultBaseConstructor = kDefaultConstructor | kBaseConstructor,
|
| kDefaultSubclassConstructor = kDefaultConstructor | kSubclassConstructor,
|
| + kClassConstructor =
|
| + kBaseConstructor | kSubclassConstructor | kDefaultConstructor,
|
| kConciseMethodInObjectLiteral = kConciseMethod | kInObjectLiteral,
|
| kConciseGeneratorMethodInObjectLiteral =
|
| kConciseGeneratorMethod | kInObjectLiteral,
|
| @@ -1003,9 +1005,7 @@ inline bool IsSubclassConstructor(FunctionKind kind) {
|
|
|
| inline bool IsClassConstructor(FunctionKind kind) {
|
| DCHECK(IsValidFunctionKind(kind));
|
| - return kind &
|
| - (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor |
|
| - FunctionKind::kDefaultConstructor);
|
| + return kind & FunctionKind::kClassConstructor;
|
| }
|
|
|
|
|
|
|