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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prettyprinter.cc
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
index c5ac881be298805f18baa9bc40f498492b327e2f..ac123bd10feb52e22380c68446a4fa49e4311bf9 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -1532,8 +1532,8 @@ void AstPrinter::VisitCallNew(CallNew* node) {
void AstPrinter::VisitCallRuntime(CallRuntime* node) {
EmbeddedVector<char, 128> buf;
+ SNPrintF(buf, "CALL RUNTIME %s", node->debug_name());
IndentedScope indent(this, buf.start());
- Print("NAME %s\n", node->debug_name());
PrintArguments(node->arguments());
}
« 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