Chromium Code Reviews| Index: src/globals.h |
| diff --git a/src/globals.h b/src/globals.h |
| index f4e09dd59fd5e0a76574c2cf103077d505c51954..d23b2e3c3bfaaa7ca91c9ea1c19d4eac6f3b37a9 100644 |
| --- a/src/globals.h |
| +++ b/src/globals.h |
| @@ -1024,6 +1024,10 @@ inline bool IsAsyncFunction(FunctionKind kind) { |
| return kind & FunctionKind::kAsyncFunction; |
| } |
| +inline bool IsResumableFunction(FunctionKind kind) { |
| + return IsGeneratorFunction(kind) || IsAsyncFunction(kind); |
|
Benedikt Meurer
2016/06/13 17:13:47
I'm really not sure this helper function adds to t
caitp (gmail)
2016/06/13 17:17:32
I generally agree, but it is sort of mixed messagi
|
| +} |
| + |
| inline bool IsConciseMethod(FunctionKind kind) { |
| DCHECK(IsValidFunctionKind(kind)); |
| return kind & FunctionKind::kConciseMethod; |