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

Unified Diff: src/globals.h

Issue 2051423003: [interpreter] support async functions in Ignition (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase / remove pointless edit to debugger test Created 4 years, 6 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
« no previous file with comments | « no previous file | src/interpreter/bytecode-generator.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 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;
« no previous file with comments | « no previous file | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698