Reviewers: Benedikt Meurer, Yang OOO until mid October,

Message:
Benedikt: PTAL
Yang: FYI

Description:
Fix AstPrinter::VisitCallRuntime to not print garbage.

[email protected]

Please review this at https://codereview.chromium.org/1329133002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -1 lines):
  M src/prettyprinter.cc


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());
 }



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to