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

Side by Side Diff: runtime/vm/ast_printer.cc

Issue 169893003: Another round of cleanups for http://www.dartbug.com/15922 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/ast_printer.h" 5 #include "vm/ast_printer.h"
6 6
7 #include "vm/handles.h" 7 #include "vm/handles.h"
8 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 340
341 void AstPrinter::VisitStoreIndexedNode(StoreIndexedNode* node) { 341 void AstPrinter::VisitStoreIndexedNode(StoreIndexedNode* node) {
342 OS::Print("(%s%s ", node->PrettyName(), node->IsSuperStore() ? " super" : ""); 342 OS::Print("(%s%s ", node->PrettyName(), node->IsSuperStore() ? " super" : "");
343 node->VisitChildren(this); 343 node->VisitChildren(this);
344 OS::Print(")"); 344 OS::Print(")");
345 } 345 }
346 346
347 347
348 void AstPrinter::VisitNativeBodyNode(NativeBodyNode* node) { 348 void AstPrinter::VisitNativeBodyNode(NativeBodyNode* node) {
349 OS::Print("(%s \"%s\" (%d args))", 349 OS::Print("(%s \"%s\" (%" Pd " args))",
350 node->PrettyName(), 350 node->PrettyName(),
351 node->native_c_function_name().ToCString(), 351 node->native_c_function_name().ToCString(),
352 NativeArguments::ParameterCountForResolution(node->function())); 352 NativeArguments::ParameterCountForResolution(node->function()));
353 } 353 }
354 354
355 355
356 void AstPrinter::VisitCatchClauseNode(CatchClauseNode* node) { 356 void AstPrinter::VisitCatchClauseNode(CatchClauseNode* node) {
357 VisitGenericAstNode(node); 357 VisitGenericAstNode(node);
358 } 358 }
359 359
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 ASSERT(node_sequence != NULL); 489 ASSERT(node_sequence != NULL);
490 AstPrinter ast_printer; 490 AstPrinter ast_printer;
491 const char* function_name = 491 const char* function_name =
492 parsed_function.function().ToFullyQualifiedCString(); 492 parsed_function.function().ToFullyQualifiedCString();
493 OS::Print("Ast for function '%s' {\n", function_name); 493 OS::Print("Ast for function '%s' {\n", function_name);
494 node_sequence->Visit(&ast_printer); 494 node_sequence->Visit(&ast_printer);
495 OS::Print("}\n"); 495 OS::Print("}\n");
496 } 496 }
497 497
498 } // namespace dart 498 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698