Commit ce6e40fc authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[ubsan] Fix Map::PrintMapDetails.

Now that Map just contains a pointer, and is passed by value to
Logger::MapDetails, printing the this pointer in Map::PrintMapDetails no longer
makes sense, but we need to print the underlying pointer.

BUG=v8:3770

Change-Id: I87f41c796dbff7a8800731bb1d63a7482b9ff71c
Reviewed-on: https://chromium-review.googlesource.com/c/1347485Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57733}
parent 92e34290
......@@ -2400,7 +2400,7 @@ void Map::PrintMapDetails(std::ostream& os) {
#ifdef OBJECT_PRINT
this->MapPrint(os);
#else
os << "Map=" << reinterpret_cast<void*>(this);
os << "Map=" << reinterpret_cast<void*>(ptr());
#endif
os << "\n";
instance_descriptors()->PrintDescriptors(os);
......
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