Chromium Code Reviews| Index: src/globals.h |
| diff --git a/src/globals.h b/src/globals.h |
| index 777f4297cb903fe950a76f8ccf8087fefb1cf56c..6806aa0aa7bc4c3d27f8a29aa5ed7e48d9d93e8f 100644 |
| --- a/src/globals.h |
| +++ b/src/globals.h |
| @@ -970,7 +970,8 @@ enum FunctionKind { |
| kClassConstructor = |
| kBaseConstructor | kSubclassConstructor | kDefaultConstructor, |
| kAsyncArrowFunction = kArrowFunction | kAsyncFunction, |
| - kAsyncConciseMethod = kAsyncFunction | kConciseMethod |
| + kAsyncConciseMethod = kAsyncFunction | kConciseMethod, |
| + kArrowGeneratorFunction = kGeneratorFunction | kArrowFunction |
| }; |
| inline bool IsValidFunctionKind(FunctionKind kind) { |
| @@ -988,7 +989,8 @@ inline bool IsValidFunctionKind(FunctionKind kind) { |
| kind == FunctionKind::kSubclassConstructor || |
| kind == FunctionKind::kAsyncFunction || |
| kind == FunctionKind::kAsyncArrowFunction || |
| - kind == FunctionKind::kAsyncConciseMethod; |
| + kind == FunctionKind::kAsyncConciseMethod || |
| + kind == FunctionKind::kArrowGeneratorFunction; |
| } |
| @@ -1069,6 +1071,11 @@ inline uint32_t ObjectHash(Address address) { |
| kPointerSizeLog2); |
| } |
| +enum class AsyncFunctionResumeMode { |
| + Normal, |
| + Throw, |
| +}; |
|
Dan Ehrenberg
2016/05/04 22:52:36
This is not used in this patch, only in the subseq
|
| + |
| } // namespace internal |
| } // namespace v8 |