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

Unified Diff: runtime/vm/ast_printer.cc

Issue 1308163006: Reduce the number of captured variables in async code, by only capturing local (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 years, 3 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/ast.h ('k') | runtime/vm/ast_transformer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
diff --git a/runtime/vm/ast_printer.cc b/runtime/vm/ast_printer.cc
index 16b9468d6eb77071f2a9262f3d2ae2b4ded46c49..aa5c29f510c60af0979cf3de0b26a149aabb9d80 100644
--- a/runtime/vm/ast_printer.cc
+++ b/runtime/vm/ast_printer.cc
@@ -191,17 +191,22 @@ void AstPrinter::VisitAssignableNode(AssignableNode* node) {
void AstPrinter::VisitAwaitNode(AwaitNode* node) {
- VisitGenericAstNode(node);
+ ISL_Print("(*****%s***** (scope \"%p\") ", node->PrettyName(), node->scope());
+ node->VisitChildren(this);
+ ISL_Print(")");
}
void AstPrinter::VisitAwaitMarkerNode(AwaitMarkerNode* node) {
- VisitGenericAstNode(node);
+ ISL_Print("(%s (async_scope \"%p\" await_scope \"%p\"))",
+ node->PrettyName(),
+ node->async_scope(),
+ node->await_scope());
}
void AstPrinter::VisitPrimaryNode(PrimaryNode* node) {
- ISL_Print("*****%s***** \"%s\")",
+ ISL_Print("(*****%s***** \"%s\")",
node->PrettyName(),
node->primary().ToCString());
}
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_transformer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698