Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: src/globals.h

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: disable opt too to fix test variants ._< Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/builtins.cc ('K') | « src/frames.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index ca4f2c4163290be5d1a4f58e4168817c2e37188e..8bd8b2b6c792e26c7488b5219674007755ee7bb9 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -943,7 +943,8 @@ enum FunctionKind {
kClassConstructor =
kBaseConstructor | kSubclassConstructor | kDefaultConstructor,
kAsyncArrowFunction = kArrowFunction | kAsyncFunction,
- kAsyncConciseMethod = kAsyncFunction | kConciseMethod
+ kAsyncConciseMethod = kAsyncFunction | kConciseMethod,
+ kArrowGeneratorFunction = kGeneratorFunction | kArrowFunction
};
inline bool IsValidFunctionKind(FunctionKind kind) {
@@ -961,7 +962,8 @@ inline bool IsValidFunctionKind(FunctionKind kind) {
kind == FunctionKind::kSubclassConstructor ||
kind == FunctionKind::kAsyncFunction ||
kind == FunctionKind::kAsyncArrowFunction ||
- kind == FunctionKind::kAsyncConciseMethod;
+ kind == FunctionKind::kAsyncConciseMethod ||
+ kind == FunctionKind::kArrowGeneratorFunction;
}
« src/builtins.cc ('K') | « src/frames.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698