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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2697193008: [Kernel] replace function debuggable field with originalAsyncMarker field (Closed)
Patch Set: Changes based on feedback (+ small forgotten things) Created 3 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/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index d12987fae7982f10fa0cbd485b18b8f52d3299b7..61ff8afe8ca6f1ba63f4b3f1590b558585e6644e 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -6132,7 +6132,8 @@ Fragment FlowGraphBuilder::TranslateFunctionNode(FunctionNode* node,
// NOTE: This is not TokenPosition in the general sense!
function = Function::NewClosureFunction(
*name, parsed_function_->function(), position);
- function.set_is_debuggable(node->debuggable());
+ function.set_is_debuggable(node->original_async_marker() ==
Kevin Millikin (Google) 2017/02/22 07:59:59 Why not set the function to be correctly sync*/asy
jensj 2017/02/22 10:36:45 Done.
+ FunctionNode::kSync);
function.set_end_token_pos(node->end_position());
LocalScope* scope = scopes_->function_scopes[i].scope;
const ContextScope& context_scope =
« pkg/kernel/lib/transformations/continuation.dart ('K') | « runtime/vm/kernel_reader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698