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

Unified Diff: runtime/vm/ast_printer.cc

Issue 1020893004: Be less aggressive in sharing contexts between scopes so that sibling contexts (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast_printer.cc
===================================================================
--- runtime/vm/ast_printer.cc (revision 44591)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -27,7 +27,19 @@
void AstPrinter::VisitSequenceNode(SequenceNode* node) {
indent_++;
- ISL_Print("(%s (scope \"%p\")", node->PrettyName(), node->scope());
+ LocalScope* scope = node->scope();
+ ISL_Print("(%s (scope \"%p\"", node->PrettyName(), scope);
+ if (scope != NULL) {
+ ISL_Print(" loop %d", scope->loop_level());
+ if (scope->HasContextLevel()) {
+ ISL_Print(" context %d captures %d",
+ scope->context_level(),
+ scope->num_context_variables());
+ } else {
+ ASSERT(scope->num_context_variables() == 0);
+ }
+ }
+ ISL_Print(")");
for (int i = 0; i < node->length(); ++i) {
ISL_Print("\n");
for (intptr_t p = 0; p < indent_; p++) {
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698