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

Unified Diff: runtime/vm/object.cc

Issue 467993002: Async closures are not optimizable for now. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 277376a91b166fac65740b42b7a499c51a2ba3e2..82bdd718dfe0d1dca6fd97221127ced23ad50060 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -5525,6 +5525,7 @@ void Function::set_is_external(bool value) const {
void Function::set_is_async_closure(bool value) const {
set_kind_tag(AsyncClosureBit::update(value, raw_ptr()->kind_tag_));
+ set_is_optimizable(false);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698