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

Unified Diff: runtime/vm/object.h

Issue 944893005: Implement async* functions in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 43883)
+++ runtime/vm/object.h (working copy)
@@ -2172,6 +2172,20 @@
Function::Handle(parent_function()).IsSyncGenerator();
}
+ bool IsGeneratorClosure() const {
+ return is_generated_body() &&
+ Function::Handle(parent_function()).IsGenerator();
+ }
+
+ bool IsAsyncGenerator() const {
+ return modifier() == RawFunction::kAsyncGen;
+ }
+
+ bool IsAsyncGenClosure() const {
+ return is_generated_body() &&
+ Function::Handle(parent_function()).IsAsyncGenerator();
+ }
+
bool IsAsyncOrGenerator() const {
return modifier() != RawFunction::kNoModifier;
}

Powered by Google App Engine
This is Rietveld 408576698