Commit 2e5ccd7c authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

Debug-print oddballs as 'Oddball', not 'String'

Before:
DebugPrint: 0x2f950804030d: [String] in ReadOnlySpace: #undefined
...

After:
DebugPrint: 0x2f950804030d: [Oddball] in ReadOnlySpace: #undefined
...

Bug: v8:10581
Change-Id: I21aebc40426fb17cea41a31195aa5cb553c07e2a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2239570
Auto-Submit: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68291}
parent a305d2de
......@@ -1005,7 +1005,13 @@ void FeedbackNexus::Print(std::ostream& os) { // NOLINT
}
void Oddball::OddballPrint(std::ostream& os) { // NOLINT
to_string().Print(os);
PrintHeapObjectHeaderWithoutMap(*this, os, "Oddball");
os << ": ";
String s = to_string();
os << s.PrefixForDebugPrint();
s.PrintUC16(os);
os << s.SuffixForDebugPrint();
os << std::endl;
}
void JSAsyncFunctionObject::JSAsyncFunctionObjectPrint(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment