Commit 62e31271 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

Cast RelocInfo.Mode to int before printing

Mode has an underlying type of int8_t. When printing it we can end up
with unprintable ascii values. This shows up with --trace-turbo, and the
json file ends up with invalid bytes, and Turbolizer cannot preview.

Change-Id: I6bc905416b6e6da35a259734233b366b858452e4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2031895Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66180}
parent 1e36e21a
......@@ -257,7 +257,8 @@ size_t hash_value(RelocatablePtrConstantInfo const& p) {
std::ostream& operator<<(std::ostream& os,
RelocatablePtrConstantInfo const& p) {
return os << p.value() << ", " << p.rmode() << ", " << p.type();
return os << p.value() << ", " << static_cast<int>(p.rmode()) << ", "
<< p.type();
}
SparseInputMask::InputIterator::InputIterator(
......
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