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

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

Issue 1087383002: Add support for debug break in Dart source. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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/log.h" 8 #include "vm/log.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 } 420 }
421 ISL_Print(")"); 421 ISL_Print(")");
422 } 422 }
423 423
424 424
425 void AstPrinter::VisitThrowNode(ThrowNode* node) { 425 void AstPrinter::VisitThrowNode(ThrowNode* node) {
426 VisitGenericAstNode(node); 426 VisitGenericAstNode(node);
427 } 427 }
428 428
429 429
430 void AstPrinter::VisitStopNode(StopNode* node) {
431 ISL_Print("(%s %s)", node->PrettyName(), node->message());
432 }
433
434
430 void AstPrinter::VisitInlinedFinallyNode(InlinedFinallyNode* node) { 435 void AstPrinter::VisitInlinedFinallyNode(InlinedFinallyNode* node) {
431 VisitGenericAstNode(node); 436 VisitGenericAstNode(node);
432 } 437 }
433 438
434 439
435 void AstPrinter::PrintNode(AstNode* node) { 440 void AstPrinter::PrintNode(AstNode* node) {
436 ASSERT(node != NULL); 441 ASSERT(node != NULL);
437 AstPrinter ast_printer; 442 AstPrinter ast_printer;
438 node->Visit(&ast_printer); 443 node->Visit(&ast_printer);
439 ISL_Print("\n"); 444 ISL_Print("\n");
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 ASSERT(node_sequence != NULL); 565 ASSERT(node_sequence != NULL);
561 AstPrinter ast_printer; 566 AstPrinter ast_printer;
562 const char* function_name = 567 const char* function_name =
563 parsed_function.function().ToFullyQualifiedCString(); 568 parsed_function.function().ToFullyQualifiedCString();
564 ISL_Print("Ast for function '%s' {\n", function_name); 569 ISL_Print("Ast for function '%s' {\n", function_name);
565 node_sequence->Visit(&ast_printer); 570 node_sequence->Visit(&ast_printer);
566 ISL_Print("}\n"); 571 ISL_Print("}\n");
567 } 572 }
568 573
569 } // namespace dart 574 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_transformer.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698