Fix AstPrinter::VisitCallRuntime to not print garbage.
authormstarzinger <mstarzinger@chromium.org>
Tue, 8 Sep 2015 12:39:26 +0000 (05:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 8 Sep 2015 12:39:34 +0000 (12:39 +0000)
R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1329133002

Cr-Commit-Position: refs/heads/master@{#30633}

src/prettyprinter.cc

index c5ac881..ac123bd 100644 (file)
@@ -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());
 }