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

Unified Diff: runtime/vm/ast_printer.cc

Issue 10832150: Get rid of ast node ids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/ast.h ('k') | runtime/vm/code_descriptors.h » ('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 10302)
+++ runtime/vm/ast_printer.cc (working copy)
@@ -18,7 +18,7 @@
void AstPrinter::VisitGenericAstNode(AstNode* node) {
- OS::Print("(%d: %s ", node->id(), node->Name());
+ OS::Print("(%s ", node->Name());
node->VisitChildren(this);
OS::Print(")");
}
@@ -30,8 +30,7 @@
// CodeGeneratorContext.
ASSERT(node_sequence != NULL);
for (int i = 0; i < node_sequence->length(); i++) {
- OS::Print("id %d, scope 0x%x: ",
- node_sequence->NodeAt(i)->id(),
+ OS::Print("scope 0x%x: ",
node_sequence->scope());
node_sequence->NodeAt(i)->Visit(this);
OS::Print("\n");
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/code_descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698