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

Side by Side Diff: src/prettyprinter.cc

Issue 1329133002: Fix AstPrinter::VisitCallRuntime to not print garbage. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/prettyprinter.h" 5 #include "src/prettyprinter.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "src/ast-value-factory.h" 9 #include "src/ast-value-factory.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1525 1525
1526 void AstPrinter::VisitCallNew(CallNew* node) { 1526 void AstPrinter::VisitCallNew(CallNew* node) {
1527 IndentedScope indent(this, "CALL NEW"); 1527 IndentedScope indent(this, "CALL NEW");
1528 Visit(node->expression()); 1528 Visit(node->expression());
1529 PrintArguments(node->arguments()); 1529 PrintArguments(node->arguments());
1530 } 1530 }
1531 1531
1532 1532
1533 void AstPrinter::VisitCallRuntime(CallRuntime* node) { 1533 void AstPrinter::VisitCallRuntime(CallRuntime* node) {
1534 EmbeddedVector<char, 128> buf; 1534 EmbeddedVector<char, 128> buf;
1535 SNPrintF(buf, "CALL RUNTIME %s", node->debug_name());
1535 IndentedScope indent(this, buf.start()); 1536 IndentedScope indent(this, buf.start());
1536 Print("NAME %s\n", node->debug_name());
1537 PrintArguments(node->arguments()); 1537 PrintArguments(node->arguments());
1538 } 1538 }
1539 1539
1540 1540
1541 void AstPrinter::VisitUnaryOperation(UnaryOperation* node) { 1541 void AstPrinter::VisitUnaryOperation(UnaryOperation* node) {
1542 IndentedScope indent(this, Token::Name(node->op())); 1542 IndentedScope indent(this, Token::Name(node->op()));
1543 Visit(node->expression()); 1543 Visit(node->expression());
1544 } 1544 }
1545 1545
1546 1546
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 1590
1591 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { 1591 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) {
1592 IndentedScope indent(this, "SUPER-CALL-REFERENCE"); 1592 IndentedScope indent(this, "SUPER-CALL-REFERENCE");
1593 } 1593 }
1594 1594
1595 1595
1596 #endif // DEBUG 1596 #endif // DEBUG
1597 1597
1598 } // namespace internal 1598 } // namespace internal
1599 } // namespace v8 1599 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698