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

Unified Diff: runtime/vm/object.cc

Issue 467323002: Fix call to completer for async closures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: added iterations to test 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 | « runtime/vm/flow_graph_builder.cc ('k') | tests/language/async_control_structures_test.dart » ('j') | 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 8ac877bfafbe20c2860061d8fc25a577da484825..4d07b17a7a932cc042d93fe93d371886ceee9d17 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -5526,7 +5526,8 @@ 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);
+ // Prohibit inlining as the closure is used for implementing a continuation.
+ set_is_inlinable(false);
}
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | tests/language/async_control_structures_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698