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

Unified Diff: runtime/vm/kernel_reader.cc

Issue 2891053003: Add support for converted closures with explicit contexts to VM (Closed)
Patch Set: Return statement-to-block conversion for procedure bodies Created 3 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
Index: runtime/vm/kernel_reader.cc
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc
index f2923d5623bcea97b86d82bf68734d46bad99900..f4aff8ee028ee564e2b44140719353221b718a7d 100644
--- a/runtime/vm/kernel_reader.cc
+++ b/runtime/vm/kernel_reader.cc
@@ -521,7 +521,9 @@ void KernelReader::ReadProcedure(const dart::Library& library,
// no special modifier
break;
}
- ASSERT(kernel_procedure->function()->async_marker() == FunctionNode::kSync);
+ ASSERT(kernel_procedure->function()->async_marker() == FunctionNode::kSync ||
+ kernel_procedure->function()->async_marker() ==
+ FunctionNode::kSyncYielding);
if (native_name != NULL) {
function.set_native_name(*native_name);

Powered by Google App Engine
This is Rietveld 408576698