[turbofan] Fix printing of FieldAccess.

Avoid the stupid newline when the name is a String, which is
automatically appended by the Object::Print() method. Just use
the Name::NamePrint() method instead.

Bug: v8:5267
Change-Id: I12ec878325b6f6ecdd8633a5ac8129b2398ddf9a
Reviewed-on: https://chromium-review.googlesource.com/778823
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49486}
This commit is contained in:
Benedikt Meurer 2017-11-20 12:38:20 +01:00 committed by Commit Bot
parent b6658adee0
commit 842303a637

View File

@ -54,7 +54,7 @@ std::ostream& operator<<(std::ostream& os, FieldAccess const& access) {
#ifdef OBJECT_PRINT #ifdef OBJECT_PRINT
Handle<Name> name; Handle<Name> name;
if (access.name.ToHandle(&name)) { if (access.name.ToHandle(&name)) {
name->Print(os); name->NamePrint(os);
os << ", "; os << ", ";
} }
Handle<Map> map; Handle<Map> map;